Borderou de evaluare (job #579185)

Utilizator avatar andrei_marciuc Marciuc Andrei andrei_marciuc IP ascuns
Problemă Combat Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 ian. 2021 09:54:21 Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:17:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 17 | fscanf( fin, "%d%d%d", &no_ship, &base_life, &base_damage ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:19:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 19 | fscanf( fin, "%d %d", &ship[ i ].life, &ship[ i ].damage ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test Punctaj/grupă
1 1 ms 262 kb OK 10 20
2 1 ms 262 kb OK 10
3 1 ms 262 kb OK 10 0
4 1 ms 262 kb OK 10
5 1 ms 262 kb Incorect 0
6 1 ms 262 kb Incorect 0 0
7 1 ms 262 kb Incorect 0 0
8 1 ms 262 kb Incorect 0 0
9 1 ms 262 kb Incorect 0 0
10 1 ms 262 kb Incorect 0 0
Punctaj total 20