Borderou de evaluare (job #692303)

Utilizator avatar comanandrei Coman Andrei comanandrei IP ascuns
Problemă Popas (clasa a 8-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 2 feb. 2023 17:47:11 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin, "%d", &nr_drumuri); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:16:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(fin, "%d%d", &nr_traseu, &nr_izvoare); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:18:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(fin, "%d", &distanta); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:33:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | fscanf(fin, "%d%d", &distanta_max_cu_apa, &distanta_max_fara_apa); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:51:41: warning: array subscript 21 is above array bounds of 'char[21]' [-Warray-bounds] 51 | distanta_parcursa=izvoare[index][index2-1]; | ~~~~~~~~~~~~~~^~~~~~~~~~ main.c:7:28: note: while referencing 'izvoare' 7 | char distante[MAX_DIST+1], izvoare[MAX_DRUMURI+1][MAX_IZVOARE+1]; | ^~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 10
2 1 ms 114 kb OK 10
3 2 ms 245 kb OK 10
4 1 ms 114 kb OK 10
5 1 ms 114 kb OK 10
6 1 ms 114 kb OK 10
7 1 ms 114 kb OK 10
8 1 ms 114 kb OK 10
9 1 ms 114 kb OK 10
10 1 ms 114 kb OK 10
Punctaj total 100