Borderou de evaluare (job #502327)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Îngerași (clasa a 5-a) | Compilator | c |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 nov. 2019 23:17:17 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function 'main':
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: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:16:13: error: expected expression before ')' token
user.c:21: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:21: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:21:9: warning: format not a string literal and no format arguments [-Wformat-security]
user.c:7:30: warning: variable 'ci' set but not used [-Wunused-but-set-variable]
user.c:7:25: warning: unused variable 'min' [-Wunused-variable]
user.c:7:21: warning: variable 'nc' set but not used [-Wunused-but-set-variable]
user.c:7:12: warning: unused variable 'h' [-Wunused-variable]
user.c:6:17: warning: unused variable 'fout' [-Wunused-variable]
user.c:10:12: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
user.c:15:16: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
user.c:21:16: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]