Pagini recente » Borderou de evaluare (job #669004) | Borderou de evaluare (job #1526950)
Borderou de evaluare (job #1526950)
Raport evaluator
Compilare:
user.c: In function ‘main’:
user.c:8:9: warning: assignment from incompatible pointer type [enabled by default]
fin = fopen("densitate.in", "r");
^
user.c:9:10: warning: assignment from incompatible pointer type [enabled by default]
fout = fopen("densitate.out", "w");
^
user.c:10:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
fscanf(fin, "%d%d", &N, &Q);
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.c:1:
/usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:26:9: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
fscanf(fin, "%d%d", &a, &b);
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.c:1:
/usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:27:9: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default]
fprintf(fout, "%d\n", x[b] - x[a - 1]);
^
In file included from /usr/include/stdio.h:934:0,
from user.c:1:
/usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’
fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...)
^
user.c:10:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &N, &Q);
^
user.c:26:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &a, &b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | OK | 10 |
2 | 4ms | 260kb | OK | 10 |
3 | 0ms | 300kb | OK | 10 |
4 | 0ms | 320kb | OK | 10 |
5 | 28ms | 320kb | OK | 10 |
6 | 60ms | 648kb | OK | 10 |
7 | 72ms | 808kb | OK | 10 |
8 | 76ms | 2020kb | OK | 10 |
9 | 88ms | 2132kb | OK | 10 |
10 | 100ms | 2216kb | OK | 10 |
Punctaj total | 100 |