Borderou de evaluare (job #798760)

Utilizator avatar rayanb Rayan Beharvandi rayanb IP ascuns
Problemă Îngerași (clasa a 5-a) Compilator c-32
Rundă Concurs 02 | IQ Academy | clasa a 5-a Status evaluat
Dată 3 dec. 2024 18:33:21 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:8:9: error: incompatible types when assigning to type 'FILE' from type 'FILE *' 8 | fin=fopen("ingeras.in","r"); | ^~~~~ main.c:9:10: error: incompatible types when assigning to type 'FILE' from type 'FILE *' 9 | fout=fopen("ingeras.out","w"); | ^~~~~ main.c:11:12: error: incompatible type for argument 1 of 'fscanf' 11 | fscanf(fin,"%d",&n); | ^~~ | | | FILE In file included from main.c:1: /usr/include/stdio.h:422:37: note: expected 'FILE *' but argument is of type 'FILE' 422 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:13:14: error: incompatible type for argument 1 of 'fscanf' 13 | fscanf(fin,"%d%d%d",&ingeras1,&ingeras2,&ingeras3); | ^~~ | | | FILE /usr/include/stdio.h:422:37: note: expected 'FILE *' but argument is of type 'FILE' 422 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:22:7: error: 'else' without a previous 'if' 22 | else { | ^~~~ main.c:37:13: error: incompatible type for argument 1 of 'fprintf' 37 | fprintf(fout,"%d",h); | ^~~~ | | | FILE In file included from /usr/include/stdio.h:970: /usr/include/bits/stdio2.h:109:27: note: expected 'FILE *' but argument is of type 'FILE' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:38:12: error: incompatible type for argument 1 of 'fclose' 38 | fclose(fin); | ^~~ | | | FILE /usr/include/stdio.h:184:26: note: expected 'FILE *' but argument is of type 'FILE' 184 | extern int fclose (FILE *__stream) __nonnull ((1)); | ~~~~~~^~~~~~~~ main.c:39:12: error: incompatible type for argument 1 of 'fclose' 39 | fclose(fout); | ^~~~ | | | FILE /usr/include/stdio.h:184:26: note: expected 'FILE *' but argument is of type 'FILE'