Borderou de evaluare (job #762585)

Utilizator avatar maria.bertolon Nerdvana 7 Maria Bertolon maria.bertolon IP ascuns
Problemă Optime (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 15 feb. 2024 16:15:05 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:41:24: warning: array subscript has type 'char' [-Wchar-subscripts] 41 | if( ciur[m[lin][col]] == 1 ) | ~~~~~~^~~~~ main.c:49:24: warning: array subscript has type 'char' [-Wchar-subscripts] 49 | if( ciur[m[lin][col]] == 0 ) | ~~~~~~^~~~~ main.c:58:24: warning: array subscript has type 'char' [-Wchar-subscripts] 58 | if( ciur[m[lin][col + x - 1]] == 0 ) | ~~~~~~^~~~~~~~~~~~~ main.c:17:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf( fin, "%d%d", &c, &k ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:19:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf( fin, "%d", &x ); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:76:5: /usr/include/bits/stdio2.h:79:10: warning: 's' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:14:35: note: 's' was declared here 14 | int c, k, x, d, i, p, lin, col, s, nrpt, maxnrp, maxcol; | ^ In function 'fprintf', inlined from 'main' at main.c:78:5: /usr/include/bits/stdio2.h:79:10: warning: 'maxnrp' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:14:44: note: 'maxnrp' was declared here 14 | int c, k, x, d, i, p, lin, col, s, nrpt, maxnrp, maxcol; | ^~~~~~ main.c:78:5: warning: 'maxcol' may be used uninitialized [-Wmaybe-uninitialized] 78 | fprintf( fout, "%d\n%d\n", maxcol + 1, maxnrp ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:14:52: note: 'maxcol' was declared here 14 | int c, k, x, d, i, p, lin, col, s, nrpt, maxnrp, maxcol; | ^~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 29 ms 1294 kb OK 5
2 29 ms 1298 kb OK 5
3 49 ms 1552 kb OK 5
4 29 ms 1294 kb OK 5
5 29 ms 1294 kb OK 5
6 49 ms 1294 kb OK 5
7 29 ms 1294 kb OK 5
8 29 ms 1294 kb OK 5
9 29 ms 1298 kb OK 5
10 29 ms 1298 kb OK 5
11 49 ms 1290 kb OK 5
12 49 ms 1552 kb OK 5
13 49 ms 1556 kb OK 5
14 49 ms 1556 kb OK 5
15 49 ms 1556 kb OK 5
16 29 ms 1294 kb OK 5
17 29 ms 1298 kb OK 5
18 49 ms 1294 kb OK 5
19 49 ms 1556 kb OK 5
20 49 ms 1552 kb OK 5
Punctaj total 100