Borderou de evaluare (job #640775)

Utilizator avatar Varena Varena Varena IP ascuns
Problemă Xy (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 14 mar. 2022 09:17:36 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:81:69: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 81 | if(f[lin][col]!=0 && f[lin][col2]!=0 && f[lin][col2]!=0 && f[lin2][b]!=0||(lin==0 && lin2==n+1 && col==0 && col2==m+1)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ main.c:13:65: warning: unused variable 'ok' [-Wunused-variable] 13 | int n, m, k, a, b, lin, col, lin2, col2, cnt=0, max=1, z=0, ok=0, ok2, ult, p, p2; | ^~ main.c:13:60: warning: unused variable 'z' [-Wunused-variable] 13 | int n, m, k, a, b, lin, col, lin2, col2, cnt=0, max=1, z=0, ok=0, ok2, ult, p, p2; | ^ main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin, "%d%d%d", &n, &m, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:17:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin, "%d%d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:130:24: warning: 'ult' may be used uninitialized in this function [-Wmaybe-uninitialized] 130 | if(cnt==ult-1) | ~~~^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 10
2 1 ms 110 kb OK 10
3 1 ms 110 kb OK 10
4 1 ms 114 kb OK 10
5 1 ms 110 kb OK 10
6 1 ms 110 kb OK 10
7 1 ms 110 kb OK 10
8 1 ms 114 kb OK 10
9 1 ms 114 kb OK 10
10 13 ms 114 kb OK 10
Punctaj total 100