Borderou de evaluare (job #813105)

Utilizator avatar RaresManolescu Rares Manolescu RaresManolescu IP ascuns
Problemă Alarma (clasa a 6-a) Compilator c-32
Rundă Simulare 2 OJI clasa a 6-a 2025 Status evaluat
Dată 7 mar. 2025 10:56:10 Scor 4

Raport evaluator

Compilare: main.c: In function 'main': main.c:11:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin,"%d%d",&v[i][1], &v[i][2]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin,"%d", &ora); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:25:23: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds=] 25 | if(v[h/10][2]>v[h%10][2]){ | ~~~~~~~^~~ main.c:3:5: note: while referencing 'v' 3 | int v[10][2]; | ^ main.c:25:34: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds=] 25 | if(v[h/10][2]>v[h%10][2]){ | ~~~~~~~^~~ main.c:3:5: note: while referencing 'v' 3 | int v[10][2]; | ^ main.c:38:34: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds=] 38 | if(v[h%10][2]>v[m/10][2]){ | ~~~~~~~^~~ main.c:3:5: note: while referencing 'v' 3 | int v[10][2]; | ^ main.c:51:34: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds=] 51 | if(v[h/10][2]>v[m%10][2]){ | ~~~~~~~^~~ main.c:3:5: note: while referencing 'v' 3 | int v[10][2]; | ^ main.c:65:7: warning: 'rasp' may be used uninitialized [-Wmaybe-uninitialized] 65 | if(rasp<1000){ | ^ main.c:9:57: note: 'rasp' was declared here 9 | int i, ora, j, h, m, calm=2000000000, x, y, z, cal, rasp; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb a) rezultat incorect; b) rezultat incorect 0
2 1 ms 245 kb a) rezultat incorect; b) lipsa 0
3 2 ms 245 kb a) rezultat incorect; b) rezultat incorect 0
4 3 ms 245 kb a) rezultat incorect; b) lipsa 0
5 1 ms 266 kb a) rezultat incorect; b) rezultat incorect 0
6 1 ms 245 kb a) rezultat incorect; b) rezultat incorect 0
7 1 ms 245 kb a) rezultat incorect; b) rezultat incorect 0
8 1 ms 245 kb a) OK; b) rezultat incorect 4
9 1 ms 245 kb a) rezultat incorect; b) rezultat incorect 0
10 1 ms 245 kb a) rezultat incorect; b) lipsa 0
Punctaj total 4