Borderou de evaluare (job #1461485)
Utilizator | Data | 15 iulie 2015 20:02:21 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:6:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
FILE *fin*fout;
^
user.c:6:15: error: ‘fout’ undeclared (first use in this function)
FILE *fin*fout;
^
user.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
user.c:7:5: error: ‘fin’ undeclared (first use in this function)
fin=fopen("algsort.in","r");
^
user.c:14:8: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
fscanf("%d",&v[i]);
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.c:1:
/usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:14:8: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
fscanf("%d",&v[i]);
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.c:1:
/usr/include/stdio.h:449:12: note: expected ‘const char * restrict’ but argument is of type ‘int *’
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
user.c:14:14: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf("%d",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !