Borderou de evaluare (job #625010)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Leo (clasa a 6-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 13 ian. 2022 18:23:02 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:5:1: warning: return type defaults to 'int' [-Wimplicit-int]
5 | main ()
| ^~~~
main.c: In function 'main':
main.c:52:21: error: expected ')' before string constant
52 | fprintf(fout"%d", cnt);
| ~ ^~~~
| )
main.c:52:9: error: too few arguments to function 'fprintf'
52 | fprintf(fout"%d", cnt);
| ^~~~~~~
In file included from /usr/include/stdio.h:866,
from main.c:1:
/usr/include/bits/stdio2.h:103:1: note: declared here
103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ^~~~~~~
main.c:17:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | fscanf(fin , "%d%d", &c, &n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~