Borderou de evaluare (job #600100)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Anagramabil | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 iun. 2021 17:04:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:12:9: error: incompatible types when assigning to type 'FILE' from type 'FILE *'
12 | fin=fopen("magic1.in","r");
| ^~~~~
main.c:13:10: error: incompatible types when assigning to type 'FILE' from type 'FILE *'
13 | fout=fopen("magic1.out","w");
| ^~~~~
main.c:14:12: error: incompatible type for argument 1 of 'fscanf'
14 | fscanf(fin,"%d",&n);
| ^~~
| |
| FILE
In file included from main.c:1:
/usr/include/stdio.h:391:37: note: expected 'FILE * restrict' but argument is of type 'FILE'
391 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:15:13: error: incompatible type for argument 1 of 'fgetc'
15 | k=fgetc(fin);
| ^~~
| |
| FILE
In file included from main.c:1:
/usr/include/stdio.h:489:25: note: expected 'FILE *' but argument is of type 'FILE'
489 | extern int fgetc (FILE *__stream);
| ~~~~~~^~~~~~~~
main.c:18:18: error: incompatible type for argument 1 of 'fgetc'
18 | c=fgetc(fin);
| ^~~
| |
| FILE
In file included from main.c:1:
/usr/include/stdio.h:489:25: note: expected 'FILE *' but argument is of type 'FILE'
489 | extern int fgetc (FILE *__stream);
| ~~~~~~^~~~~~~~
main.c:27:18: error: incompatible type for argument 1 of 'fgetc'
27 | k=fgetc(fin);
| ^~~
| |
| FILE
In file included from main.c:1:
/usr/include/stdio.h:489:25: note: expected 'FILE *' but argument is of type 'FILE'
489 | extern int fgetc (FILE *__stream);
| ~~~~~~^~~~~~~~
main.c:31:24: error: incompatible type for argument 2 of 'fputc'
31 | fputc(vlit[i],fout);
| ^~~~
| |
| FILE
In file included from main.c:1:
/usr/include/stdio.h:525:34: note: expected 'FILE *' but argument is of type 'FILE'