Borderou de evaluare (job #1613699)

Utilizator AndreiGrigorasAndrei Grigoras AndreiGrigoras Data 25 februarie 2016 16:22:06
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:35:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf ( "%d" , &refill ) ; ^ user.cpp:31:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ( "lanterna.in" , "r" , stdin ) ; ^ user.cpp:32:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d %d" , &N , &K ) ; ^ user.cpp:35:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d" , &refill ) ; ^ user.cpp:38:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d" , &M ) ; ^ user.cpp:41:64: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d %d %d %d" , &x , &y , &distance , &power ) ; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms472kbOK10
20ms448kbIncorect0
30ms452kbOK10
40ms444kbIncorect0
50ms460kbIncorect0
60ms444kbIncorect0
70ms436kbIncorect0
80ms456kbIncorect0
90ms428kbIncorect0
100ms440kbIncorect0
Punctaj total20

Ceva nu functioneaza?