Borderou de evaluare (job #672773)
Utilizator | Data | 3 februarie 2012 04:48:46 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:6: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type
/usr/include/stdio.h:425: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
user.c:6: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type
/usr/include/stdio.h:425: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
user.c:6: warning: format not a string literal and no format arguments
user.c:7: error: ‘B’ undeclared (first use in this function)
user.c:7: error: (Each undeclared identifier is reported only once
user.c:7: error: for each function it appears in.)
user.c:7: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type
/usr/include/stdio.h:425: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
user.c:8: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type
/usr/include/bits/stdio2.h:96: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
user.c:8: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast
/usr/include/bits/stdio2.h:96: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
user.c:8: warning: format not a string literal and no format arguments
user.c:6: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !