Borderou de evaluare (job #1414868)

Utilizator PetreCatalinFMI Petre Catalin PetreCatalin Data 3 aprilie 2015 10:33:17
Problema Coach Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool verif(long int)’: user.cpp:39:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d %d %d\n",use[i],use[j],v[p].x,v[k].x); ^ user.cpp:39:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:39:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:39:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long int’ [-Wformat=] user.cpp: In function ‘int main()’: user.cpp:50:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d",&n,&m,&t); ^ user.cpp:50:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:50:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:52:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&v[i].x); ^ user.cpp:64:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d",&a,&b,&k); ^ user.cpp:64:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:64:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:48:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("coach.in","r",stdin); ^ user.cpp:49:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("coach.out","w",stdout); ^ user.cpp:50:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&m,&t); ^ user.cpp:52:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i].x); ^ user.cpp:64:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&a,&b,&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbBelea !10
20ms280kbBelea !10
30ms276kbBelea !10
40ms284kbBelea !10
50ms304kbBelea !10
60ms320kbBelea !10
70ms328kbBelea !10
84ms340kbBelea !10
9100ms336kbBelea !10
104ms340kbBelea !10
Punctaj total100

Ceva nu functioneaza?