Borderou de evaluare (job #812154)

Utilizator avatar NeaguIoan Negu Catalin NeaguIoan IP ascuns
Problemă Grad1 (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 1 mar. 2025 18:55:47 Scor 0

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", &a[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:20:14: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 20 | f[i] = 0; | ~~~~~^~~ main.c:19:17: note: within this loop 19 | for(i = 0;i <= MAXX;i++) | ^ main.c:24:13: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 24 | if(f[i] == 1) | ~^~~ main.c:23:17: note: within this loop 23 | for(i = 0;i <= MAXX;i++) { | ^ main.c:33:18: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 33 | f[j] = 0; | ~~~~~^~~ main.c:32:21: note: within this loop 32 | for(j = 0;j <= MAXX;j++) | ^ main.c:39:17: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 39 | if(f[j] == 1) | ~^~~ main.c:38:21: note: within this loop 38 | for(j = 0;j <= MAXX;j++) { | ^ main.c:20:14: warning: '__builtin_memset' forming offset [128004, 128007] is out of the bounds [0, 128004] of object 'f' with type 'int[32001]' [-Warray-bounds=] 20 | f[i] = 0; | ~~~~~^~~ main.c:5:25: note: 'f' declared here 5 | int a[10005], s[10005], f[MAXX]; | ^ main.c:20:14: warning: '__builtin_memset' forming offset [128004, 128007] is out of the bounds [0, 128004] of object 'f' with type 'int[32001]' [-Warray-bounds=] 20 | f[i] = 0; | ~~~~~^~~ main.c:5:25: note: 'f' declared here 5 | int a[10005], s[10005], f[MAXX]; | ^ main.c:33:18: warning: '__builtin_memset' forming offset [128004, 128007] is out of the bounds [0, 128004] of object 'f' with type 'int[32001]' [-Warray-bounds=] 33 | f[j] = 0; | ~~~~~^~~ main.c:5:25: note: 'f' declared here 5 | int a[10005], s[10005], f[MAXX]; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb Killed by Signal 11 0
2 1 ms 249 kb Killed by Signal 11 0
3 1 ms 512 kb Killed by Signal 11 0
4 1 ms 270 kb Killed by Signal 11 0
5 1 ms 249 kb Killed by Signal 11 0
6 1 ms 249 kb Killed by Signal 11 0
7 2 ms 249 kb Killed by Signal 11 0
8 1 ms 249 kb Killed by Signal 11 0
9 2 ms 249 kb Killed by Signal 11 0
10 1 ms 249 kb Killed by Signal 11 0
Punctaj total 0