Borderou de evaluare (job #318242)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Balaur (clasa a 5-a) | Compilator | c |
Rundă | Tema 11 clasa 5 | Status | evaluat |
Dată | 22 oct. 2017 15:43:54 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:10:5: 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 ‘char *’
user.c:10:5: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [enabled by default]
/usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
user.c:10:5: warning: format not a string literal and no format arguments [-Wformat-security]
user.c:11:5: error: expected ‘;’ before ‘return’
user.c:6:13: warning: unused variable ‘i’ [-Wunused-variable]
user.c:6:11: warning: unused variable ‘k’ [-Wunused-variable]
user.c:6:9: warning: unused variable ‘p’ [-Wunused-variable]
user.c:5:15: warning: variable ‘fout’ set but not used [-Wunused-but-set-variable]
user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
user.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]