Pagini recente »
Monitorul de evaluare
|
Monitorul de evaluare
|
Monitorul de evaluare
|
Borderou de evaluare (job #849690)
|
Borderou de evaluare (job #849715)
Borderou de evaluare (job #849715)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:30:19: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | if(abc[sir[i]] != abc[sir[i - 1]]){
| ~~~^~~
main.c:30:34: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | if(abc[sir[i]] != abc[sir[i - 1]]){
| ~~~^~~~~~~
main.c:38:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'char *' [-Wformat=]
38 | fscanf(fin, "%d", &mon[i]);
| ~^ ~~~~~~~
| | |
| | char *
| int *
| %hhd
main.c:43:19: warning: array subscript has type 'char' [-Wchar-subscripts]
43 | if(val[sir[i]] == 0){
| ~~~^~~
main.c:44:20: warning: array subscript has type 'char' [-Wchar-subscripts]
44 | val[sir[i]] = mon[ind];
| ~~~^~~
main.c:51:23: warning: array subscript has type 'char' [-Wchar-subscripts]
51 | k[i] = val[sir[i]];
| ~~~^~~
main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:36:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | fscanf(fin, "%d", &m);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:38:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | fscanf(fin, "%d", &mon[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
1 ms
|
508 kb
|
OK
|
10
|
|
2
|
0 ms
|
292 kb
|
OK
|
10
|
|
3
|
0 ms
|
292 kb
|
OK
|
10
|
|
4
|
0 ms
|
292 kb
|
OK
|
10
|
|
5
|
1 ms
|
508 kb
|
OK
|
10
|
|
6
|
0 ms
|
508 kb
|
OK
|
10
|
|
7
|
0 ms
|
292 kb
|
OK
|
10
|
|
8
|
1 ms
|
508 kb
|
OK
|
10
|
|
9
|
2 ms
|
496 kb
|
OK
|
10
|
|
10
|
2 ms
|
276 kb
|
OK
|
10
|
|
Punctaj total
|
100
|