Borderou de evaluare (job #482529)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Plaja 1 (clasa a 5-a) | Compilator | c |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 iul. 2019 16:14:58 | 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:30: 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:12:13: error: redeclaration of 'i' with no linkage
user.c:9:11: note: previous declaration of 'i' was here
user.c:12:5: error: 'for' loop initial declarations are only allowed in C99 mode
user.c:12:5: note: use option -std=c99 or -std=gnu99 to compile your code
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]