Borderou de evaluare (job #26312)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Balaur (clasa a 5-a) | Compilator | c |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 29 oct. 2013 21:41:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:3:1: error: unknown type name ‘File’
user.c:5:4: warning: assignment from incompatible pointer type [enabled by default]
user.c:6:1: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘int *’
user.c:7:1: warning: passing argument 1 of ‘fclose’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:238:12: note: expected ‘struct FILE *’ but argument is of type ‘int *’
user.c:9:5: warning: assignment from incompatible pointer type [enabled by default]
user.c:10:15: error: expected ‘)’ before string constant
user.c:10:15: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default]
/usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘int *’
user.c:10:15: error: too few arguments to function ‘fprintf’
user.c:11:1: warning: passing argument 1 of ‘fclose’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:238:12: note: expected ‘struct FILE *’ but argument is of type ‘int *’
user.c:4:8: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]
user.c:6:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]