Borderou de evaluare (job #140727)

Utilizator avatar teodora.mustea Teodora Mustea teodora.mustea IP ascuns
Problemă Cezar (clasa a 5-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 6 apr. 2015 10:39:04 Scor 0

Raport evaluator

Eroare de compilare: user.c:4:1: warning: data definition has no type or storage class [enabled by default] user.c:4:1: warning: type defaults to ‘int’ in declaration of ‘fin’ [-Wimplicit-int] user.c:4:1: error: conflicting types for ‘fin’ user.c:3:6: note: previous declaration of ‘fin’ was here user.c:4:5: warning: initialization makes integer from pointer without a cast [enabled by default] user.c:4:1: error: initializer element is not constant user.c:5:1: warning: data definition has no type or storage class [enabled by default] user.c:5:1: warning: type defaults to ‘int’ in declaration of ‘fout’ [-Wimplicit-int] user.c:5:1: error: conflicting types for ‘fout’ user.c:3:11: note: previous declaration of ‘fout’ was here user.c:5:6: warning: initialization makes integer from pointer without a cast [enabled by default] user.c:5:1: error: initializer element is not constant user.c: In function ‘main’: user.c:8:1: warning: passing argument 1 of ‘fgetc’ makes pointer from integer without a cast [enabled by default] /usr/include/stdio.h:537:12: note: expected ‘struct FILE *’ but argument is of type ‘int’ user.c:11:9: error: ‘out’ undeclared (first use in this function) user.c:11:9: note: each undeclared identifier is reported only once for each function it appears in user.c:12:3: warning: passing argument 1 of ‘fgetc’ makes pointer from integer without a cast [enabled by default] /usr/include/stdio.h:537:12: note: expected ‘struct FILE *’ but argument is of type ‘int’ user.c:13:3: warning: passing argument 1 of ‘fgetc’ makes pointer from integer without a cast [enabled by default] /usr/include/stdio.h:537:12: note: expected ‘struct FILE *’ but argument is of type ‘char’ user.c:13:3: error: too many arguments to function ‘fgetc’ /usr/include/stdio.h:537:12: note: declared here user.c:14:1: warning: passing argument 1 of ‘fclose’ makes pointer from integer without a cast [enabled by default] /usr/include/stdio.h:238:12: note: expected ‘struct FILE *’ but argument is of type ‘int’ user.c:16:1: error: expected declaration or statement at end of input user.c:16:1: warning: control reaches end of non-void function [-Wreturn-type]