Borderou de evaluare (job #811977)

Utilizator avatar Gavriliu.Adam Adam Gavriliu Robert Gavriliu.Adam IP ascuns
Problemă Grad1 (clasa a 6-a) Compilator c-32
Rundă Tema 30 Clasa a 6-a Status evaluat
Dată 27 feb. 2025 23:28:18 Scor 95

Raport evaluator

Compilare: main.c: In function 'main': main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d%d", &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:17:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin, "%d", &v[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:20:15: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 20 | fr[i] = 0; | ~~~~~~^~~ main.c:19:17: note: within this loop 19 | for(i = 0;i <= MAXX;i++) | ^ main.c:24:14: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 24 | if(fr[i] == 1) | ~~^~~ main.c:23:17: note: within this loop 23 | for(i = 0;i <= MAXX;i++) { | ^ main.c:33:19: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 33 | fr[j] = 0; | ~~~~~~^~~ main.c:32:21: note: within this loop 32 | for(j = 0;j <= MAXX;j++) | ^ main.c:39:18: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 39 | if(fr[j] == 1) | ~~^~~ main.c:38:21: note: within this loop 38 | for(j = 0;j <= MAXX;j++) { | ^ main.c:20:15: warning: '__builtin_memset' forming offset [128004, 128007] is out of the bounds [0, 128004] of object 'fr' with type 'int[32001]' [-Warray-bounds=] 20 | fr[i] = 0; | ~~~~~~^~~ main.c:5:25: note: 'fr' declared here 5 | int v[10005], s[10005], fr[MAXX]; | ^~ main.c:20:15: warning: '__builtin_memset' forming offset [128004, 128007] is out of the bounds [0, 128004] of object 'fr' with type 'int[32001]' [-Warray-bounds=] 20 | fr[i] = 0; | ~~~~~~^~~ main.c:5:25: note: 'fr' declared here 5 | int v[10005], s[10005], fr[MAXX]; | ^~ main.c:33:19: warning: '__builtin_memset' forming offset [128004, 128007] is out of the bounds [0, 128004] of object 'fr' with type 'int[32001]' [-Warray-bounds=] 33 | fr[j] = 0; | ~~~~~~^~~ main.c:5:25: note: 'fr' declared here 5 | int v[10005], s[10005], fr[MAXX]; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 9 ms 249 kb OK 10
4 79 ms 245 kb OK 10
5 379 ms 507 kb OK 10
6 609 ms 512 kb OK 10
7 719 ms 512 kb OK 10
8 689 ms 507 kb OK 10
9 819 ms 512 kb OK 10
10 549 ms 512 kb OK 10
Penalizare: 5% (pentru 1 submisie/ii) 5%
Punctaj total 95