Borderou de evaluare (job #602221)

Utilizator avatar mateilb1234 Matei Balaur mateilb1234 IP ascuns
Problemă Culori1 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 20 iul. 2021 14:58:20 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin,"%d%d",&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%d",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:33:18: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 33 | frecv[k1]=0; | ~~~~~~~~~^~ main.c:32:7: note: within this loop 32 | for(k1=1;k1<=100;k1++) | ^~~ main.c:41:17: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 41 | if(frecv[j]>maxx1) | ~~~~~^~~ main.c:40:7: note: within this loop 40 | for(j=1;j<=100;j++){ | ^~~ main.c:33:18: warning: '__builtin_memset' forming offset [400, 403] is out of the bounds [0, 400] of object 'frecv' with type 'int[100]' [-Warray-bounds] 33 | frecv[k1]=0; | ~~~~~~~~~^~ main.c:3:13: note: 'frecv' declared here 3 | int v[1000],frecv[100]; | ^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 3 ms 131 kb OK 10
2 4 ms 131 kb OK 10
3 4 ms 131 kb OK 10
4 3 ms 131 kb OK 10
5 4 ms 131 kb OK 10
6 3 ms 131 kb OK 10
7 4 ms 131 kb OK 10
8 3 ms 131 kb OK 10
9 4 ms 131 kb OK 10
10 3 ms 131 kb OK 10
Punctaj total 100