Borderou de evaluare (job #22791)

Utilizator avatar alexpetrescu Alexandru Petrescu alexpetrescu IP ascuns
Problemă Elementul Majoritar (clasa a 6-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 6 oct. 2013 01:09:54 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:30:9: 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:30:9: 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:32:9: 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:32:9: error: too few arguments to function ‘fprintf’ user.c:5:16: warning: variable ‘fout’ set but not used [-Wunused-but-set-variable] user.c:8:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:12:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]