Borderou de evaluare (job #796049)

Utilizator avatar bianca21 Bianca Draghiceanu bianca21 IP ascuns
Problemă Cabina (clasa a 5-a) Compilator c-32
Rundă Concurs 01 | IQ Academy | clasa a 5-a Status evaluat
Dată 19 nov. 2024 10:22:38 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:9:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("fin", &n,&a,&b); | ^~~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:422:37: note: expected 'FILE * restrict' but argument is of type 'char *' 422 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:19: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("fin", &n,&a,&b); | ^~ | | | int * /usr/include/stdio.h:423:43: note: expected 'const char * restrict' but argument is of type 'int *' 423 | const char *__restrict __format, ...) __wur __nonnull ((1)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:11:13: warning: self-comparison always evaluates to false [-Wtautological-compare] 11 | if(a<a) { | ^ main.c:14:16: error: expected expression before ')' token 14 | c=c+(a-)*3; | ^ main.c:18:5: error: called object 'fin' is not a function or function pointer 18 | fin(fclose); | ^~~ main.c:7:11: note: declared here 7 | FILE *fin, *fout; | ^~~ main.c:20:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 20 | fprintf("%d/n%d/n%d", &p,c,s); | ^~~~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:970: /usr/include/bits/stdio2.h:109:27: note: expected 'FILE * restrict' but argument is of type 'char *' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:20:27: warning: passing argument 2 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 20 | fprintf("%d/n%d/n%d", &p,c,s); | ^~ | | | int * /usr/include/bits/stdio2.h:109:60: note: expected 'const char * restrict' but argument is of type 'int *' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:21:5: error: called object 'fout' is not a function or function pointer 21 | fout(fclose); | ^~~~