Borderou de evaluare (job #766750)

Utilizator avatar Maria-Luiza Petrescu Maria-Luiza Maria-Luiza IP ascuns
Problemă Inimioare (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 7 mar. 2024 12:45:59 Scor 40

Raport evaluator

Compilare: main.c: In function 'main': main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf( fin, "%d", &n ); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:15:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf( fin, "%d", &v[j] ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:43:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 43 | fscanf( fin, "%d", &v[j] ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:20:18: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 20 | if( v[j]==max ){ | ~^~~ main.c:19:20: note: within this loop 19 | for( j=1; j<=4; j++ ) | ~^~~ main.c:48:18: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 48 | if( v[j]==max ){ | ~^~~ main.c:47:20: note: within this loop 47 | for( j=1; j<=4; j++ ) | ~^~~ main.c:45:18: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 45 | if( v[j]>max ) | ~^~~ main.c:44:20: note: within this loop 44 | for( j=1; j<=4; j++ ) | ~^~~ main.c:17:18: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 17 | if( v[j]>max ) | ~^~~ main.c:16:20: note: within this loop 16 | for( j=1; j<=4; j++ ) | ~^~~ main.c:45:18: warning: array subscript 4 is above array bounds of 'int[4]' [-Warray-bounds=] 45 | if( v[j]>max ) | ~^~~ main.c:3:5: note: while referencing 'v' 3 | int v[4]; | ^ main.c:17:18: warning: array subscript 4 is above array bounds of 'int[4]' [-Warray-bounds=] 17 | if( v[j]>max ) | ~^~~ main.c:3:5: note: while referencing 'v' 3 | int v[4]; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 143 kb OK 10
2 1 ms 266 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 266 kb Incorect 0
5 1 ms 507 kb OK 10
6 1 ms 507 kb Incorect 0
7 1 ms 266 kb OK 10
8 1 ms 245 kb OK 10
9 19 ms 245 kb Incorect 0
10 29 ms 270 kb Incorect 0
Punctaj total 40