Borderou de evaluare (job #627149)

Utilizator avatar PetruApostol Petru Apostol PetruApostol IP ascuns
Problemă Culori (clasa a 5-a) Compilator c-32
Rundă Tema 22 clasa a 5-a Status evaluat
Dată 23 ian. 2022 12:02:09 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:17:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:20:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin,"%d",&a); | ^~~~~~~~~~~~~~~~~~~ main.c:12:13: warning: iteration 98 invokes undefined behavior [-Waggressive-loop-optimizations] 12 | o[i]=0; | ~~~~^~ main.c:10:15: note: within this loop 10 | for (i=1;i<=99;i++) | ~^~~~ main.c:29:16: warning: iteration 98 invokes undefined behavior [-Waggressive-loop-optimizations] 29 | while(o[i]>0) | ~^~~ main.c:27:14: note: within this loop 27 | for(i=1;i<=99;i++) | ~^~~~ main.c:12:13: warning: '__builtin_memset' forming offset [396, 399] is out of the bounds [0, 396] of object 'o' with type 'int[99]' [-Warray-bounds] 12 | o[i]=0; | ~~~~^~ main.c:1:5: note: 'o' declared here 1 | int o[99]; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 110 kb OK 10
2 1 ms 114 kb OK 10
3 1 ms 114 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 118 kb OK 10
8 61 ms 106 kb OK 10
9 625 ms 151 kb OK 10
10 642 ms 139 kb OK 10
Punctaj total 100