Borderou de evaluare (job #707795)

Utilizator avatar andreifilimon Popescu Filimon Andrei Cosmin andreifilimon IP ascuns
Problemă Secvențe (clasa a 8-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 16 mar. 2023 11:21:41 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:66:15: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 66 | fprintf("\n"); | ^~~~ | | | 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:66:7: error: too few arguments to function 'fprintf' 66 | fprintf("\n"); | ^~~~~~~ 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:21:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(fin, "%d", &d); | ^~~~~~~~~~~~~~~~~~~~~ main.c:27:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fin, "%d%d%d", &n, &p, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:29:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 29 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~