Borderou de evaluare (job #2121237)

Utilizator eduardandrei20Nechifor Eduard Andrei eduardandrei20 Data 3 februarie 2018 14:41:33
Problema Balanta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp:14:7: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] main() ^ user.cpp: In function ‘int main()’: user.cpp:17:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&n,&m); ^ user.cpp:17:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:22:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&x); ^ user.cpp:27:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&w); ^ user.cpp:34:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&w); ^ user.cpp:40:14: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&k); ^ user.cpp:21:9: warning: unused variable ‘locST’ [-Wunused-variable] int locST, locDR, x , w; ^ user.cpp:21:16: warning: unused variable ‘locDR’ [-Wunused-variable] int locST, locDR, x , w; ^ user.cpp:102:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if(P[i] == 1 ) printf("%d",i); ^ user.cpp:113:38: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if(PS[i] == 1 ) printf("%d",i); ^ user.cpp:16:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("balanta.in","r",stdin); ^ user.cpp:17:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:22:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:27:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&w); ^ user.cpp:34:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&w); ^ user.cpp:40:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1260kbIncorect0
20ms1256kbIncorect0
30ms1256kbIncorect0
40ms1256kbIncorect0
50ms1256kbIncorect0
60ms1256kbIncorect0
70ms1260kbIncorect0
80ms1264kbIncorect0
90ms1264kbOK10
100ms1260kbIncorect0
Punctaj total10

Ceva nu functioneaza?