Pagini recente »
Utilizatori înregistrați la oji_2017_9
|
Borderou de evaluare (job #684081)
Borderou de evaluare (job #684081)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:13:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'short int *' [-Wformat=]
13 | fscanf(fin, "%d%d%d%d%d", &c[i], &l, &c_len[i], &l_len, &h[i]);
| ~^ ~~~~~
| | |
| int * short int *
| %hd
main.c:13:27: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'short int *' [-Wformat=]
13 | fscanf(fin, "%d%d%d%d%d", &c[i], &l, &c_len[i], &l_len, &h[i]);
| ~^ ~~~~~~~~~
| | |
| int * short int *
| %hd
main.c:13:31: warning: format '%d' expects argument of type 'int *', but argument 7 has type 'short int *' [-Wformat=]
13 | fscanf(fin, "%d%d%d%d%d", &c[i], &l, &c_len[i], &l_len, &h[i]);
| ~^ ~~~~~
| | |
| int * short int *
| %hd
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin, "%d%d%d%d%d", &c[i], &l, &c_len[i], &l_len, &h[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:19:16: warning: iteration 101 invokes undefined behavior [-Waggressive-loop-optimizations]
19 | i=lista[j];
| ~~~~~^~~
main.c:17:14: note: within this loop
17 | for(j=0;j<=1000;j++)
| ~^~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
114 kb
|
OK
|
10
|
2
|
1 ms
|
114 kb
|
OK
|
10
|
3
|
1 ms
|
114 kb
|
OK
|
10
|
4
|
1 ms
|
114 kb
|
Incorect
|
0
|
5
|
1 ms
|
110 kb
|
Incorect
|
0
|
6
|
1 ms
|
114 kb
|
OK
|
10
|
7
|
1 ms
|
114 kb
|
OK
|
10
|
8
|
1 ms
|
114 kb
|
Incorect
|
0
|
9
|
1 ms
|
114 kb
|
Incorect
|
0
|
10
|
1 ms
|
114 kb
|
OK
|
10
|
Punctaj total
|
60
|