Borderou de evaluare (job #859454)

Utilizator avatar PetruCostache14 Costache Petru Stefan PetruCostache14 IP ascuns
Problemă Stele (clasa a 5-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 23 apr. 2026 19:32:04 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:23:13: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 23 | fprintf("%d",col); | ^~~~ | | | 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:23:18: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 23 | fprintf("%d",col); | ^~~ | | | 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:7:33: warning: variable 'rand' set but not used [-Wunused-but-set-variable] 7 | int K,N,valc=2,cr=1,i,col=1,rand; | ^~~~ main.c:6:17: warning: unused variable 'fout' [-Wunused-variable] 6 | FILE *fin, *fout; | ^~~~ main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin ,"%d %d",&K ,&N); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~