Borderou de evaluare (job #711851)

Utilizator avatar Tudor_11 Tudor Ioan Calin Tudor_11 IP ascuns
Problemă Felinare1 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 26 mar. 2023 16:58:20 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:23:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 23 | fprintf("FARA SOLUTIE"); | ^~~~~~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:906, from main.c:1: /usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'char *' 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:23:9: error: too few arguments to function 'fprintf' 23 | fprintf("FARA SOLUTIE"); | ^~~~~~~ In file included from /usr/include/stdio.h:906, from main.c:1: /usr/include/bits/stdio2.h:77:1: note: declared here 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:16:16: warning: variable 'cout' set but not used [-Wunused-but-set-variable] 16 | FILE *cin,*cout; | ^~~~ main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(cin,"%d%d",&n,&p); | ^~~~~~~~~~~~~~~~~~~~~~~~