Borderou de evaluare (job #605401)

Utilizator avatar Mihai_Ariton Mihai Ariton Mihai_Ariton IP ascuns
Problemă Magic1 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 4 sept. 2021 15:59:21 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:34:19: warning: passing argument 1 of 'fputc' makes integer from pointer without a cast [-Wint-conversion] 34 | fputc(fout, "%d", i) | ^~~~ | | | FILE * In file included from main.c:1: /usr/include/stdio.h:525:23: note: expected 'int' but argument is of type 'FILE *' 525 | extern int fputc (int __c, FILE *__stream); | ~~~~^~~ main.c:34:25: warning: passing argument 2 of 'fputc' from incompatible pointer type [-Wincompatible-pointer-types] 34 | fputc(fout, "%d", i) | ^~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:525:34: note: expected 'FILE *' but argument is of type 'char *' 525 | extern int fputc (int __c, FILE *__stream); | ~~~~~~^~~~~~~~ main.c:34:13: error: too many arguments to function 'fputc' 34 | fputc(fout, "%d", i) | ^~~~~ In file included from main.c:1: /usr/include/stdio.h:525:12: note: declared here 525 | extern int fputc (int __c, FILE *__stream); | ^~~~~ main.c:34:33: error: expected ';' before 'ok' 34 | fputc(fout, "%d", i) | ^ | ; 35 | ok=1; | ~~ main.c:40:23: warning: passing argument 1 of 'fputc' makes integer from pointer without a cast [-Wint-conversion] 40 | fputc(fout, "%d", t) | ^~~~ | | | FILE * In file included from main.c:1: /usr/include/stdio.h:525:23: note: expected 'int' but argument is of type 'FILE *' 525 | extern int fputc (int __c, FILE *__stream); | ~~~~^~~ main.c:40:29: warning: passing argument 2 of 'fputc' from incompatible pointer type [-Wincompatible-pointer-types] 40 | fputc(fout, "%d", t) | ^~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:525:34: note: expected 'FILE *' but argument is of type 'char *' 525 | extern int fputc (int __c, FILE *__stream); | ~~~~~~^~~~~~~~