Borderou de evaluare (job #650560)
Utilizator | Data | 18 decembrie 2011 14:01:47 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:4: warning: ‘main’ takes only zero or two arguments
user.c: In function ‘main’:
user.c:8: 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 2 of ‘fscanf’ from incompatible pointer type
/usr/include/stdio.h:425: note: expected ‘const char * __restrict__’ but argument is of type ‘long int *’
user.c:8: warning: format not a string literal and no format arguments
user.c:16: 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:16: 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:16: warning: format not a string literal and no format arguments
user.c:17: error: ‘f’ undeclared (first use in this function)
user.c:17: error: (Each undeclared identifier is reported only once
user.c:17: error: for each function it appears in.)
user.c:17: error: ‘g’ undeclared (first use in this function)
user.c:8: 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 !