Borderou de evaluare (job #859867)

Utilizator avatar tudorpascanu Tudor Pascanu tudorpascanu IP ascuns
Problemă Plop (clasa a 7-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 4 mai 2026 12:31:16 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:76:21: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 76 | fprintf("%d\n", quick(k)); | ^~~~~~ | | | char * In file included from /usr/include/stdio.h:970, from main.c:1: /usr/include/bits/stdio2.h:109:27: note: expected 'FILE *' but argument is of type 'char *' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:76:29: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 76 | fprintf("%d\n", quick(k)); | ^~~~~~~~ | | | int /usr/include/bits/stdio2.h:109:60: note: expected 'const char *' but argument is of type 'int' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:60:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 60 | fscanf(fi, "%d%d", &n, &q); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:66:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 66 | fscanf(fi, " %c", &c); | ^~~~~~~~~~~~~~~~~~~~~ main.c:70:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 70 | fscanf(fi, "%d%d", &x, &y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:75:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 75 | fscanf(fi, "%d", &k); | ^~~~~~~~~~~~~~~~~~~~