Borderou de evaluare (job #482531)

Utilizator avatar cipri05 Cristescu Ciprian cipri05 IP ascuns
Problemă Plaja 1 (clasa a 5-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 31 iul. 2019 16:19:20 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function 'main': user.c:7:27: error: 'r' undeclared (first use in this function) user.c:7:27: note: each undeclared identifier is reported only once for each function it appears in user.c:8:29: error: 'w' undeclared (first use in this function) user.c:10: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:10:5: warning: passing argument 2 of 'fscanf' from incompatible pointer type [enabled by default] /usr/include/stdio.h:449:12: 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: 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:11:5: warning: passing argument 2 of 'fscanf' from incompatible pointer type [enabled by default] /usr/include/stdio.h:449:12: note: expected 'const char * __restrict__' but argument is of type 'int *' user.c:11:5: warning: format not a string literal and no format arguments [-Wformat-security] user.c:15:9: 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:15:9: warning: passing argument 2 of 'fscanf' from incompatible pointer type [enabled by default] /usr/include/stdio.h:449:12: note: expected 'const char * __restrict__' but argument is of type 'int *' user.c:15:9: warning: format not a string literal and no format arguments [-Wformat-security] user.c:27:5: warning: implicit declaration of function 'fprinf' [-Wimplicit-function-declaration] user.c:6:16: warning: variable 'fout' set but not used [-Wunused-but-set-variable] user.c:6:11: warning: variable 'fin' set but not used [-Wunused-but-set-variable] user.c:10:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] user.c:11:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] user.c:15:15: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]