Borderou de evaluare (job #765432)

Utilizator avatar RaMiDra Dragulescu Rares Mihai RaMiDra IP ascuns
Problemă Mărțișoare (clasa a 5-a) Compilator c-32
Rundă Tema 27 Clasa a 5-a Status evaluat
Dată 28 feb. 2024 12:30:57 Scor 40

Raport evaluator

Compilare: main.c: In function 'main': main.c:10:81: warning: variable 'nr2' set but not used [-Wunused-but-set-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^~~ main.c:10:64: warning: unused variable 'c' [-Wunused-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^ main.c:10:58: warning: unused variable 'next' [-Wunused-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^~~~ main.c:10:47: warning: unused variable 'now' [-Wunused-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^~~ main.c:10:40: warning: unused variable 'maxnr' [-Wunused-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^~~~~ main.c:10:33: warning: unused variable 'minnr' [-Wunused-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^~~~~ main.c:10:18: warning: unused variable 'prev' [-Wunused-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^~~~ main.c:10:12: warning: unused variable 'i' [-Wunused-variable] 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^ main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf( fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf( fin, "%d", &x); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf( fin, "%d", &cx); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:16:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf( fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:17:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf( fin, "%d", &b); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:85:8: warning: 'nr' may be used uninitialized [-Wmaybe-uninitialized] 85 | max=nr+(n-poz); | ~~~^~~~~~~~~~~ main.c:10:72: note: 'nr' was declared here 10 | int n, i, x, prev, cx, max, minnr, maxnr, now, a, b, next, c, poz, nr, nr1, nr2; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 4 ms 245 kb a) linie incorecta; b) OK 4
2 1 ms 245 kb a) linie incorecta; b) OK 4
3 1 ms 245 kb a) linie incorecta; b) OK 4
4 1 ms 266 kb a) linie incorecta; b) OK 4
5 1 ms 266 kb a) linie incorecta; b) OK 4
6 1 ms 241 kb a) linie incorecta; b) OK 4
7 1 ms 507 kb a) linie incorecta; b) OK 4
8 2 ms 245 kb a) linie incorecta; b) OK 4
9 1 ms 507 kb a) linie incorecta; b) OK 4
10 1 ms 245 kb a) linie incorecta; b) OK 4
Punctaj total 40