Borderou de evaluare (job #1284484)

Utilizator MacWonkMihai Alexandru Cosmin MacWonk Data 6 decembrie 2014 15:57:03
Problema Camionas Status done
Runda tema_grf1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld %ld %ld",&N,&M,&gr); ^ user.cpp:19:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:19:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:22:39: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld %ld %ld", &x, &y, &c); ^ user.cpp:22:39: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:22:39: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:35:22: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",D[N]); ^ user.cpp:16:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("camionas.in","r",stdin); ^ user.cpp:17:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("camionas.out","w",stdout); ^ user.cpp:19:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld",&N,&M,&gr); ^ user.cpp:22:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld", &x, &y, &c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbIncorect0
20ms256kbIncorect0
30ms268kbIncorect0
40ms316kbIncorect0
54ms360kbIncorect0
624ms756kbIncorect0
744ms1204kbIncorect0
840ms1056kbIncorect0
968ms1572kbIncorect0
1064ms1580kbIncorect0
Punctaj total0

Ceva nu functioneaza?