Borderou de evaluare (job #849497)

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:40:57 Scor 70

Raport evaluator

Compilare: main.c: In function 'main': 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:46:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 46 | fscanf(in, "%d",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:28:22: warning: 'nr' may be used uninitialized [-Wmaybe-uninitialized] 28 | for(i = nr;i < n - 1;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; | ^~ 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; | ^~~~ main.c:67:15: warning: 'c3' may be used uninitialized [-Wmaybe-uninitialized] 67 | 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; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 3 ms 764 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 292 kb Corect 7
6 2 ms 508 kb Corect 7
7 1 ms 292 kb Corect 7
8 3 ms 548 kb Corect 7
9 3 ms 548 kb Corect 7
10 depășit 296 kb Time limit exceeded. 0
11 0 ms 292 kb Incorect 0
12 0 ms 292 kb Incorect 0
13 10 ms 504 kb Incorect 0
14 depășit 512 kb Time limit exceeded. 0
15 depășit 296 kb Time limit exceeded. 0
16 depășit 296 kb Time limit exceeded. 0
17 6 ms 484 kb Incorect 0
18 depășit 296 kb Time limit exceeded. 0
19 depășit 512 kb Time limit exceeded. 0
20 0 ms 508 kb Corect 7
Punctaj total 70