Borderou de evaluare (job #800171)

Utilizator avatar emmarentea Emma Rentea emmarentea IP ascuns
Problemă Pădure (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 17 dec. 2024 19:15:44 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:6:14: error: too few arguments to function 'fopen' 6 | FILE*fin=fopen("cifre.in"); | ^~~~~ In file included from main.c:1: /usr/include/stdio.h:264:14: note: declared here 264 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ main.c:7:15: error: too few arguments to function 'fopen' 7 | FILE*fout=fopen("cifre.out"); | ^~~~~ /usr/include/stdio.h:264:14: note: declared here 264 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ main.c:21:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=] 21 | fprintf(fout,"%d ",&da); | ~^ ~~~ | | | | int int * | %n main.c:10:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin,"%d",&a); | ^~~~~~~~~~~~~~~~~~~