Borderou de evaluare (job #82261)

Utilizator avatar stef2003 Bud Stefan stef2003 IP ascuns
Problemă La școală (clasa a 5-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 28 oct. 2014 10:25:00 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:5:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ user.c:7:18: error: ‘n’ undeclared (first use in this function) user.c:7:18: note: each undeclared identifier is reported only once for each function it appears in user.c:7:5: 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 ‘char *’ user.c:9:5: error: ‘x’ undeclared (first use in this function) user.c:10:11: error: ‘k’ undeclared (first use in this function) user.c:14:5: error: ‘e’ undeclared (first use in this function) user.c:15:5: error: ‘fout’ undeclared (first use in this function) user.c:16:5: error: stray ‘\’ in program user.c:16:18: error: expected ‘)’ before ‘n’ user.c:16:18: 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:16:18: error: too few arguments to function ‘fprintf’ user.c:18:5: error: ‘p’ undeclared (first use in this function) user.c:22:5: error: ‘cp’ undeclared (first use in this function) user.c:23:5: error: ‘pd’ undeclared (first use in this function) user.c:24:5: error: ‘r’ undeclared (first use in this function) user.c:27: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:31:11: error: stray ‘\’ in program user.c:31:24: error: expected ‘)’ before ‘n’ user.c:31:24: 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:31:24: error: too few arguments to function ‘fprintf’