Borderou de evaluare (job #517007)

Utilizator ooctavTuchila Octavian ooctav Data 27 decembrie 2010 15:39:18
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void citi()’: user.cpp:26:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d%d", &N, &P, &K); ^ user.cpp:26:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:26:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:28:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &t[i], &c[i]); ^ user.cpp:28:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:32:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &x, &y); ^ user.cpp:32:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:26:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &N, &P, &K); ^ user.cpp:28:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &t[i], &c[i]); ^ user.cpp:32:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^ user.cpp: In function ‘int main()’: user.cpp:87:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu2.in", "r", stdin); ^ user.cpp:88:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu2.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms428kbIncorect0
20ms428kbOK10
38ms460kbIncorect0
40ms428kbIncorect0
58ms456kbOK10
60ms428kbIncorect0
70ms444kbIncorect0
80ms432kbIncorect0
90ms452kbIncorect0
108ms464kbIncorect0
Punctaj total20

Ceva nu functioneaza?