Borderou de evaluare (job #1535437)

Utilizator GinguIonutGinguIonut GinguIonut Data 24 noiembrie 2015 19:17:02
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:73:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d%d", &heads, &p, &k); ^ user.cpp:73:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:75:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &v[i].x, &v[i].y); ^ user.cpp:75:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:78:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &a, &b); ^ user.cpp:78:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:71:36: 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:72:38: 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); ^ user.cpp:73:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &heads, &p, &k); ^ user.cpp:75:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &v[i].x, &v[i].y); ^ user.cpp:78:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms308kbIncorect0
20ms296kbOK10
38ms592kbIncorect0
40ms596kbIncorect0
58ms528kbOK10
60ms328kbIncorect0
70ms356kbIncorect0
80ms300kbIncorect0
90ms524kbIncorect0
1012ms592kbIncorect0
Punctaj total20

Ceva nu functioneaza?