Borderou de evaluare (job #117873)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Culori1 (clasa a 5-a) | Compilator | c |
Rundă | Tema 24 clasa a 5-a | Status | evaluat |
Dată | 15 feb. 2015 18:30:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:12: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:12: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:12:5: warning: format not a string literal and no format arguments [-Wformat-security]
user.c:17: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:17: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:17:9: warning: format not a string literal and no format arguments [-Wformat-security]
user.c:21:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
user.c:37:19: error: ‘x’ undeclared (first use in this function)
user.c:37:19: note: each undeclared identifier is reported only once for each function it appears in
user.c:8:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
user.c:12:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
user.c:17:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]