Borderou de evaluare (job #759784)

Utilizator avatar Bla1234 Nerdvana 7 Sercaianu Mihai Bla1234 IP ascuns
Problemă Forma (clasa a 8-a) Compilator c-32
Rundă Tema 19 Clasa a 7-a Status evaluat
Dată 1 feb. 2024 15:14:52 Scor 8

Raport evaluator

Compilare: main.c: In function 'formaDeBaza': main.c:6:18: warning: unused variable 'j' [-Wunused-variable] 6 | int i, n, k, j, nr; | ^ main.c: In function 'main': main.c:61:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 61 | fscanf( fin, "%d%d", &b, &n ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:66:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 66 | fscanf( fin, "%d", &a ); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'formaDeBaza': main.c:9:19: warning: array subscript 10 is above array bounds of 'int[10]' [-Warray-bounds=] 9 | f[i] = poz[CIF] = x[i] = 0; | ~~~^~~~~ main.c:4:26: note: while referencing 'poz' 4 | int v[MAXN + 1], f[CIF], poz[CIF], x[CIF]; | ^~~ main.c:21:26: warning: 'k' may be used uninitialized [-Wmaybe-uninitialized] 21 | x[poz[i]] = k++; | ~^~ main.c:6:15: note: 'k' was declared here 6 | int i, n, k, j, nr; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Ai gresit complet! 0
2 1 ms 245 kb Ai gresit complet! 0
3 1 ms 245 kb Ai gresit complet! 0
4 1 ms 249 kb Ai gresit complet! 0
5 2 ms 245 kb Ai gresit complet! 0
6 3 ms 245 kb a) corect b) gresit 4
7 1 ms 241 kb Ai gresit complet! 0
8 9 ms 245 kb a) corect b) gresit 4
9 1 ms 249 kb Ai gresit complet! 0
10 9 ms 245 kb Ai gresit complet! 0
Punctaj total 8