Borderou de evaluare (job #806410)

Utilizator avatar coldsh_1 Marcovici Andrei coldsh_1 IP ascuns
Problemă Prieteni 1 (clasa a 6-a) Compilator c-32
Rundă Concurs 06 | IQ Academy | clasa a 6-a Status evaluat
Dată 25 ian. 2025 18:23:58 Scor 90

Raport evaluator

Compilare: main.c: In function 'main': main.c:23:48: warning: unused variable 'r' [-Wunused-variable] 23 | int n, i, nr_total = 0, nr, sum_cif, a, b, r, j; | ^ main.c:23:45: warning: unused variable 'b' [-Wunused-variable] 23 | int n, i, nr_total = 0, nr, sum_cif, a, b, r, j; | ^ main.c:23:42: warning: unused variable 'a' [-Wunused-variable] 23 | int n, i, nr_total = 0, nr, sum_cif, a, b, r, j; | ^ main.c:34:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 34 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:36:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | fscanf(fin, "%d", &v[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:67:14: warning: iteration 65999 invokes undefined behavior [-Waggressive-loop-optimizations] 67 | f[i] = 0; | ~~~~~^~~ main.c:66:19: note: within this loop 66 | for (i = 1; i <= NMAX; i++) { | ^ main.c:67:14: warning: '__builtin_memset' forming offset [264000, 264003] is out of the bounds [0, 264000] of object 'f' with type 'int[66000]' [-Warray-bounds=] 67 | f[i] = 0; | ~~~~~^~~ main.c:5:25: note: 'f' declared here 5 | int v[105], ciur[NMAX], f[NMAX]; | ^ main.c:67:14: warning: '__builtin_memset' forming offset [264000, 264003] is out of the bounds [0, 264000] of object 'f' with type 'int[66000]' [-Warray-bounds=] 67 | f[i] = 0; | ~~~~~^~~ main.c:5:25: note: 'f' declared here 5 | int v[105], ciur[NMAX], f[NMAX]; | ^ main.c:67:14: warning: '__builtin_memset' forming offset [264000, 264003] is out of the bounds [0, 264000] of object 'f' with type 'int[66000]' [-Warray-bounds=] 67 | f[i] = 0; | ~~~~~^~~ main.c:5:25: note: 'f' declared here 5 | int v[105], ciur[NMAX], f[NMAX]; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 765 kb OK 10
2 1 ms 765 kb Incorect 0
3 1 ms 765 kb OK 10
4 1 ms 765 kb OK 10
5 1 ms 790 kb OK 10
6 9 ms 729 kb OK 10
7 9 ms 737 kb OK 10
8 9 ms 745 kb OK 10
9 19 ms 733 kb OK 10
10 9 ms 737 kb OK 10
Punctaj total 90