Borderou de evaluare (job #849580)

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 19:21:15 Scor 100

Raport evaluator

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