Borderou de evaluare (job #694005)

Utilizator avatar ScarlatescuRazvan ScarlatescuRazvan ScarlatescuRazvan IP ascuns
Problemă Lasere (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 8 feb. 2023 21:24:23 Scor 10

Raport evaluator

Compilare: main.cpp: In function 'void read_matrix(int, int (*)[210])': main.cpp:9:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | scanf("%d", &a[i][j]); | ~~~~~^~~~~~~~~~~~~~~~ main.cpp: In function 'void fire_laser(int, int (*)[210], int)': main.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | scanf("%d%d%d", &p,&q,&d); | ~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:101:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 101 | freopen("lasere.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:102:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 102 | freopen("lasere.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:105:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 105 | scanf("%d", &c); | ~~~~~^~~~~~~~~~ main.cpp:108:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 108 | scanf("%d%d", &n,&m); | ~~~~~^~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 10
2 1 ms 114 kb Incorect 0
3 1 ms 118 kb Killed by Signal 11 0
4 1 ms 114 kb Incorect 0
5 23 ms 249 kb Killed by Signal 11 0
6 1 ms 249 kb Killed by Signal 11 0
7 1 ms 118 kb Killed by Signal 11 0
8 1 ms 118 kb Killed by Signal 11 0
9 1 ms 118 kb Killed by Signal 11 0
10 7 ms 245 kb Killed by Signal 11 0
Punctaj total 10