Borderou de evaluare (job #811966)

Utilizator avatar SabinDont Dontete Alexandru Sabin SabinDont IP ascuns
Problemă Grad1 (clasa a 6-a) Compilator c-32
Rundă Tema 30 Clasa a 6-a Status evaluat
Dată 27 feb. 2025 22:37:55 Scor 100

Raport evaluator

Compilare: main.c: In function 'grad': main.c:5:15: warning: unused variable 'maxi' [-Wunused-variable] 5 | int i,j=0,maxi=-1,cnt=0,l; | ^~~~ main.c: In function 'main': main.c:29:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 29 | fscanf(fin,"%d%d",&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:31:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 31 | fscanf(fin,"%d",&a[i]); | ^~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'grad': main.c:8:13: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 8 | f[i]=0; | ~~~~^~ main.c:7:14: note: within this loop 7 | for(i=0;i<=32001;i++){ | ~^~~~~~~ main.c:14:13: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 14 | if(f[i]==1){ | ~^~~ main.c:13:14: note: within this loop 13 | for(i=0;i<=32001;i++){ | ~^~~~~~~ main.c:8:13: warning: '__builtin_memset' forming offset [128004, 128007] is out of the bounds [0, 128004] of object 'f' with type 'int[32001]' [-Warray-bounds=] 8 | f[i]=0; | ~~~~^~ main.c:2:23: note: 'f' declared here 2 | int a[10001],s[10001],f[32001]; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb OK 10
2 1 ms 245 kb OK 10
3 9 ms 512 kb OK 10
4 59 ms 245 kb OK 10
5 389 ms 503 kb OK 10
6 619 ms 503 kb OK 10
7 739 ms 507 kb OK 10
8 679 ms 512 kb OK 10
9 839 ms 512 kb OK 10
10 559 ms 503 kb OK 10
Punctaj total 100