Borderou de evaluare (job #149300)

Utilizator avatar Arsene_Denisa B Arsene Denisa Arsene_Denisa IP ascuns
Problemă Elementul Majoritar (clasa a 6-a) Compilator c
Rundă Tema 41 clasa a 5-a Status evaluat
Dată 14 iun. 2015 21:02:55 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:6:5: error: conflicting types for ‘fin’ user.c:3:11: note: previous declaration of ‘fin’ was here user.c:6:9: warning: initialization makes integer from pointer without a cast [enabled by default] user.c:8:27: error: ‘n’ undeclared (first use in this function) user.c:8:27: note: each undeclared identifier is reported only once for each function it appears in user.c:8:5: warning: passing argument 1 of ‘fscanf’ makes pointer from integer without a cast [enabled by default] /usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘int’ user.c:9:5: error: ‘ap’ undeclared (first use in this function) user.c:11:10: error: ‘i’ undeclared (first use in this function) user.c:12:37: error: ‘v’ undeclared (first use in this function) user.c:12:13: warning: passing argument 1 of ‘fscanf’ makes pointer from integer without a cast [enabled by default] /usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘int’ user.c:14:9: error: ‘nrmaj’ undeclared (first use in this function) user.c:22:17: error: ‘else’ without a previous ‘if’ user.c:29:9: error: ‘sfm’ undeclared (first use in this function) user.c:41:4: 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’