Borderou de evaluare (job #636328)

Utilizator avatar diana_2010 ionica diana maria diana_2010 IP ascuns
Problemă Concurs3 (clasa a 5-a) Compilator c-32
Rundă Tema 28 clasa a 5-a Status evaluat
Dată 27 feb. 2022 17:28:42 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:54:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 54 | fprintf("FARA CAMPION"); | ^~~~~~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:866, 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:54:9: error: too few arguments to function 'fprintf' 54 | fprintf("FARA CAMPION"); | ^~~~~~~ In file included from /usr/include/stdio.h:866, 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:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d%d", &cer, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(fin, "%d%d", &x, &y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~