Borderou de evaluare (job #820365)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Ron (clasa a 7-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 11 apr. 2025 21:06:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:47:17: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
47 | fprintf("%d",max);
| ^~~~
| |
| 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:47:22: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
47 | fprintf("%d",max);
| ^~~
| |
| int
/usr/include/bits/stdio2.h:109:60: note: expected 'const char *' but argument is of type 'int'
109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf(fin,"%d%d",&c,&n);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:25:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | fscanf(fin,"%d%d",&a,&b);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:52:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | fscanf(fin,"%d%d",&a,&b);
| ^~~~~~~~~~~~~~~~~~~~~~~~