Borderou de evaluare (job #622417)

Utilizator avatar amalia_ghica Amalia Ghica amalia_ghica IP ascuns
Problemă Turn (clasa a 6-a) Compilator c-32
Rundă Tema 12 clasa a 6-a Status evaluat
Dată 21 dec. 2021 20:17:44 Scor 60

Raport evaluator

Compilare: main.c: In function 'main': main.c:35:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 35 | for(j = 0; j < poz; j++) | ^~~ main.c:37:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 37 | fprintf(fout , "%d\n" , suma); | ^~~~~~~ main.c:9:39: warning: unused variable 'nr' [-Wunused-variable] 9 | int n, k, i, a, cnt = 0, poz = 0, nr, j, suma; | ^~ main.c:9:21: warning: unused variable 'cnt' [-Wunused-variable] 9 | int n, k, i, a, cnt = 0, poz = 0, nr, j, suma; | ^~~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d%d", &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:18:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:23:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 23 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb OK 10
2 1 ms 131 kb OK 10
3 10 ms 131 kb OK 10
4 75 ms 393 kb OK 10
5 1 ms 131 kb Incorect 0
6 243 ms 520 kb Incorect 0
7 122 ms 389 kb Incorect 0
8 243 ms 524 kb OK 10
9 49 ms 131 kb Incorect 0
10 1 ms 131 kb OK 10
Punctaj total 60