Borderou de evaluare (job #2909190)
Utilizator | Data | 9 iunie 2022 19:21:49 | |
---|---|---|---|
Problema | Algoritmul lui Euclid extins | Status | done |
Runda | Arhiva educationala | Compilator | c-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:27:4: error: incompatible types when assigning to type 'FILE' from type 'FILE *'
27 | g=fopen("euclid3.out", "wt");
| ^~~~~
main.c:39:12: error: incompatible type for argument 1 of 'fprintf'
39 | fprintf(g,"0 0\n");
| ^
| |
| FILE
In file included from main.c:1:
/usr/include/stdio.h:326:38: note: expected 'FILE * restrict' but argument is of type 'FILE'
326 | extern int fprintf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:41:12: error: incompatible type for argument 1 of 'fprintf'
41 | fprintf(g,"%d %d\n", x * (x / d), y * (x / d));
| ^
| |
| FILE
In file included from main.c:1:
/usr/include/stdio.h:326:38: note: expected 'FILE * restrict' but argument is of type 'FILE'
326 | extern int fprintf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !