Borderou de evaluare (job #640398)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | 5div | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 13 mar. 2022 09:12:27 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:7:11: error: too few arguments to function 'fopen'
7 | fin = fopen("5div.in");
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:246:14: note: declared here
246 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:8:12: error: too few arguments to function 'fopen'
8 | fout = fopen("5div.out");
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:246:14: note: declared here
246 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~