Borderou de evaluare (job #1414876)

Utilizator PetreCatalinFMI Petre Catalin PetreCatalin Data 3 aprilie 2015 10:50:23
Problema Coach Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul I, Semestrul 2 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool royfloyd(long int)’: user.cpp:35:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d %d %d\n",u[i],u[j],v[p].x,v[k].x); ^ user.cpp:35:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:35:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:35:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long int’ [-Wformat=] user.cpp: In function ‘int main()’: user.cpp:46: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:46:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:46:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:48:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&v[i].x); ^ user.cpp:59: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:59:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:59:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:44: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:45: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:46: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:48: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:59: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
30ms280kbBelea !10
40ms284kbBelea !10
50ms304kbBelea !10
60ms324kbBelea !10
70ms336kbBelea !10
84ms340kbBelea !10
988ms340kbBelea !10
104ms344kbBelea !10
Punctaj total100

Ceva nu functioneaza?