Borderou de evaluare (job #811058)

Utilizator avatar Belea_Darius Belea Mihai Darius Belea_Darius IP ascuns
Problemă Spider (clasa a 6-a) Compilator c-32
Rundă Concurs 10 | IQ Academy | clasa a 6-a Status evaluat
Dată 22 feb. 2025 18:53:10 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:21:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(fin, "%d%d", &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:25:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 25 | fscanf(fin, "%d", &matrice[i][j]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:53:16: warning: array subscript 2 is above array bounds of 'int[2][5051]' [-Warray-bounds=] 53 | fir[2][ind] = p2; | ~~~^~~ main.c:4:24: note: while referencing 'fir' 4 | int matrice[101][101], fir[2][5051]; | ^~~ main.c:76:27: warning: array subscript 2 is above array bounds of 'int[2][5051]' [-Warray-bounds=] 76 | if(fir[1][i] < fir[2][i]){ | ~~~^~~ main.c:4:24: note: while referencing 'fir' 4 | int matrice[101][101], fir[2][5051]; | ^~~ main.c:67:28: warning: array subscript 2 is above array bounds of 'int[2][5051]' [-Warray-bounds=] 67 | schimb(&fir[2][i], &fir[2][j]); | ~~~^~~ main.c:4:24: note: while referencing 'fir' 4 | int matrice[101][101], fir[2][5051]; | ^~~ main.c:67:40: warning: array subscript 2 is above array bounds of 'int[2][5051]' [-Warray-bounds=] 67 | schimb(&fir[2][i], &fir[2][j]); | ~~~^~~ main.c:4:24: note: while referencing 'fir' 4 | int matrice[101][101], fir[2][5051]; | ^~~ main.c:67:28: warning: array subscript 2 is above array bounds of 'int[2][5051]' [-Warray-bounds=] 67 | schimb(&fir[2][i], &fir[2][j]); | ~~~^~~ main.c:4:24: note: while referencing 'fir' 4 | int matrice[101][101], fir[2][5051]; | ^~~ main.c:67:40: warning: array subscript 2 is above array bounds of 'int[2][5051]' [-Warray-bounds=] 67 | schimb(&fir[2][i], &fir[2][j]); | ~~~^~~ main.c:4:24: note: while referencing 'fir' 4 | int matrice[101][101], fir[2][5051]; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 507 kb OK 10
4 1 ms 241 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 241 kb OK 10
7 1 ms 245 kb OK 10
8 1 ms 245 kb OK 10
9 1 ms 245 kb OK 10
10 1 ms 249 kb OK 10
Punctaj total 100