Borderou de evaluare (job #1613746)

Utilizator AndreiGrigorasAndrei Grigoras AndreiGrigoras Data 25 februarie 2016 16:49:33
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:36:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf ( "%d" , &refill ) ; ^ user.cpp:32: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:33: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:36:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d" , &refill ) ; ^ user.cpp:39:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d" , &M ) ; ^ user.cpp:42: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
10ms680kbOK10
20ms656kbIncorect0
30ms652kbOK10
40ms644kbIncorect0
50ms660kbIncorect0
60ms632kbIncorect0
70ms636kbIncorect0
80ms660kbIncorect0
90ms460kbIncorect0
100ms648kbIncorect0
Punctaj total20

Ceva nu functioneaza?