Pagini recente »
Borderou de evaluare (job #757047)
Borderou de evaluare (job #757047)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:37:20: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | if ( frecv[ sir[ i ] ] == 0 ) {
| ~~~^~~~~
main.c:40:15: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | frecv[ sir[ i ] ]++;
| ~~~^~~~~
main.c:56:41: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | fscanf( fin, "%hhd", &putere[ litere[ i ] ] );
| ~~~~~~^~~~~
main.c:60:24: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | if ( putere[ litere[ i ] ] > maxp ) {
| ~~~~~~^~~~~
main.c:61:24: warning: array subscript has type 'char' [-Wchar-subscripts]
61 | q = frecv[ litere[ i ] ];
| ~~~~~~^~~~~
main.c:62:28: warning: array subscript has type 'char' [-Wchar-subscripts]
62 | maxp = putere[ litere[ i ] ];
| ~~~~~~^~~~~
main.c:63:31: warning: array subscript has type 'char' [-Wchar-subscripts]
63 | } else if ( putere[ litere[ i ] ] == maxp ) {
| ~~~~~~^~~~~
main.c:64:25: warning: array subscript has type 'char' [-Wchar-subscripts]
64 | q += frecv[ litere[ i ] ];
| ~~~~~~^~~~~
main.c:73:30: warning: array subscript has type 'char' [-Wchar-subscripts]
73 | st = max( i - putere[ sir[ i ] ], 0 );
| ~~~^~~~~
main.c:74:30: warning: array subscript has type 'char' [-Wchar-subscripts]
74 | dr = min( i + putere[ sir[ i ] ], n - 1 );
| ~~~^~~~~
main.c:33:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | fscanf( fin, "%d ", &n );
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:42:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | fscanf( fin, "%d", &h );
| ^~~~~~~~~~~~~~~~~~~~~~~
main.c:56:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
56 | fscanf( fin, "%hhd", &putere[ litere[ i ] ] );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 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
|
245 kb
|
OK
|
10
|
|
4
|
1 ms
|
245 kb
|
OK
|
10
|
|
5
|
1 ms
|
245 kb
|
OK
|
10
|
|
6
|
1 ms
|
245 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
|
245 kb
|
OK
|
10
|
|
Punctaj total
|
100
|