Borderou de evaluare (job #670965)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Pădure (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 oct. 2022 20:20:13 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:35:13: error: expected expression before ',' token
35 | fprintf(,fout,"%d",max);
| ^
main.c:35:14: warning: passing argument 2 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
35 | fprintf(,fout,"%d",max);
| ^~~~
| |
| FILE *
In file included from /usr/include/stdio.h:894,
from main.c:1:
/usr/include/bits/stdio2.h:103:60: note: expected 'const char * restrict' but argument is of type 'FILE *'
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",&n);
| ^~~~~~~~~~~~~~~~~~~
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin,"%d",&a);
| ^~~~~~~~~~~~~~~~~~~
main.c:14:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf(fin,"%d",&b);
| ^~~~~~~~~~~~~~~~~~~