Borderou de evaluare (job #647816)

Utilizator avatar Casian Casian Teodorescu Casian IP ascuns
Problemă La școală (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 19 apr. 2022 16:53:34 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:8:6: error: too few arguments to function 'fopen' 8 | fin=fopen("lascoala.in"); | ^~~~~ In file included from main.c:1: /usr/include/stdio.h:252:14: note: declared here 252 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ main.c:16:12: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 16 | fprintf("%d\n",n-(k*k)); | ^~~~~~ | | | char * In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:16:20: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 16 | fprintf("%d\n",n-(k*k)); | ~^~~~~~ | | | int In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:60: note: expected 'const char * restrict' but argument is of type 'int' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:24:10: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 24 | fprintf("\n"); | ^~~~ | | | char * In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:24:2: error: too few arguments to function 'fprintf' 24 | fprintf("\n"); | ^~~~~~~ In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:1: note: declared here 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:26:9: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 26 | fprintf("%d \n",a); | ^~~~~~~~ | |