Borderou de evaluare (job #805380)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Ruleta (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 ian. 2025 19:33:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:11:13: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
11 | fprintf("8");
| ^~~
| |
| 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:11:5: error: too few arguments to function 'fprintf'
11 | fprintf("8");
| ^~~~~~~
/usr/include/bits/stdio2.h:109:1: note: declared here
109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ^~~~~~~
main.c:9:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf( fin, "%d", &n );
| ^~~~~~~~~~~~~~~~~~~~~~~