Borderou de evaluare (job #849506)

Utilizator avatar Tudor_MD Marin-Diu Tudor Tudor_MD IP ascuns
Problemă Axyz (clasa a 7-a) Compilator c
Rundă Concurs 02 | IQ Academy | clasa a 7-a | 2025-2026 Status evaluat
Dată 25 ian. 2026 17:48:55 Scor 70

Raport evaluator

Compilare: main.c: In function 'main': main.c:10:75: warning: unused variable 'j' [-Wunused-variable] 10 | int min = 10, r, c, a, n, i, cp, pmin, c1, c2, c3, nr, s = 0, p, max, j, x; | ^ main.c:10:70: warning: unused variable 'max' [-Wunused-variable] 10 | int min = 10, r, c, a, n, i, cp, pmin, c1, c2, c3, nr, s = 0, p, max, j, x; | ^~~ main.c:10:67: warning: unused variable 'p' [-Wunused-variable] 10 | int min = 10, r, c, a, n, i, cp, pmin, c1, c2, c3, nr, s = 0, p, max, j, x; | ^ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(in, "%d%d%d",&c,&a,&n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:14:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(in, "%d",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:42:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 42 | fscanf(in, "%d",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:30:22: warning: 'nr' may be used uninitialized [-Wmaybe-uninitialized] 30 | for(i = nr;i < n;i++){ | ~~^~~ main.c:10:56: note: 'nr' was declared here 10 | int min = 10, r, c, a, n, i, cp, pmin, c1, c2, c3, nr, s = 0, p, max, j, x; | ^~ main.c:20:25: warning: 'pmin' may be used uninitialized [-Wmaybe-uninitialized] 20 | v[pmin] = cp; | ~~~~~~~~^~~~ main.c:10:38: note: 'pmin' was declared here 10 | int min = 10, r, c, a, n, i, cp, pmin, c1, c2, c3, nr, s = 0, p, max, j, x; | ^~~~ main.c:63:15: warning: 'c3' may be used uninitialized [-Wmaybe-uninitialized] 63 | if(v[i] == c3 && a > 100){ | ^ main.c:10:52: note: 'c3' was declared here 10 | int min = 10, r, c, a, n, i, cp, pmin, c1, c2, c3, nr, s = 0, p, max, j, x; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 4 ms 764 kb Corect 7
2 1 ms 508 kb Corect 7
3 1 ms 292 kb Corect 7
4 1 ms 292 kb Corect 7
5 1 ms 508 kb Corect 7
6 1 ms 508 kb Corect 7
7 1 ms 508 kb Corect 7
8 3 ms 548 kb Corect 7
9 3 ms 548 kb Corect 7
10 6 ms 480 kb Incorect 0
11 1 ms 508 kb Incorect 0
12 0 ms 292 kb Incorect 0
13 1 ms 288 kb Incorect 0
14 2 ms 500 kb Incorect 0
15 3 ms 500 kb Incorect 0
16 5 ms 488 kb Incorect 0
17 5 ms 484 kb Incorect 0
18 5 ms 484 kb Incorect 0
19 6 ms 264 kb Incorect 0
20 1 ms 508 kb Corect 7
Punctaj total 70