Borderou de evaluare (job #651608)

Utilizator avatar carinabrebenaru Carina Brebenaru carinabrebenaru IP ascuns
Problemă Spider (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 30 mai 2022 20:55:19 Scor 20

Raport evaluator

Compilare: main.c: In function 'main': main.c:19:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf( fin, "%d%d", &nrtotpct, &pctdeplecare); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:24:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf( fin, "%d", &d[l][c]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:17:14: warning: iteration 2000 invokes undefined behavior [-Waggressive-loop-optimizations] 17 | f[i] = -1; | ~~~~~^~~~ main.c:16:19: note: within this loop 16 | for( i = 0; i <= 2000; i++) | ~~^~~~~~~ main.c:107:13: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds] 107 | fprintf( fout, "%d %d %d\n", a[f[i]][1],a[f[i]][2],a[f[i]][3]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:5:5: note: while referencing 'a' 5 | int a[150][3],f[2000]; | ^ main.c:78:21: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds] 78 | a[i][3] = l; | ~~~~^~~ main.c:5:5: note: while referencing 'a' 5 | int a[150][3],f[2000]; | ^ main.c:73:21: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds] 73 | a[i][3] = c; | ~~~~^~~ main.c:5:5: note: while referencing 'a' 5 | int a[150][3],f[2000]; | ^ main.c:85:13: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds] 85 | printf( "zi IMPARA: %d %d %d\n", a[i][1],a[i][2], a[i][3]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:5:5: note: while referencing 'a' 5 | int a[150][3],f[2000]; | ^ main.c:46:21: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds] 46 | a[i][3] = l; | ~~~~^~~ main.c:5:5: note: while referencing 'a' 5 | int a[150][3],f[2000]; | ^ main.c:41:21: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds] 41 | a[i][3] = c; | ~~~~^~~ main.c:5:5: note: while referencing 'a' 5 | int a[150][3],f[2000]; | ^ main.c:51:13: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds]
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 118 kb Killed by Signal 11 0
2 3 ms 249 kb Killed by Signal 11 0
3 1 ms 118 kb Killed by Signal 11 0
4 1 ms 118 kb Killed by Signal 11 0
5 1 ms 118 kb Killed by Signal 11 0
6 1 ms 114 kb Killed by Signal 11 0
7 1 ms 114 kb OK 10
8 1 ms 114 kb OK 10
9 1 ms 114 kb Incorect 0
10 1 ms 118 kb Killed by Signal 11 0
Punctaj total 20