Borderou de evaluare (job #811976)

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:26:49 Scor 40

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 1. OK; 2. incorect; 3. incorect 4
2 1 ms 245 kb 1. OK; 2. incorect; 3. incorect 4
3 9 ms 249 kb 1. OK; 2. incorect; 3. incorect 4
4 59 ms 245 kb 1. OK; 2. incorect; 3. incorect 4
5 379 ms 503 kb 1. OK; 2. incorect; 3. incorect 4
6 599 ms 512 kb 1. OK; 2. incorect; 3. incorect 4
7 719 ms 512 kb 1. OK; 2. incorect; 3. incorect 4
8 679 ms 774 kb 1. OK; 2. incorect; 3. incorect 4
9 809 ms 507 kb 1. OK; 2. incorect; 3. incorect 4
10 549 ms 528 kb 1. OK; 2. incorect; 3. incorect 4
Punctaj total 40