Borderou de evaluare (job #749850)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Comune (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 7 dec. 2023 09:42:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:9:11: warning: passing argument 1 of 'scanf' from incompatible pointer type [-Wincompatible-pointer-types]
9 | scanf(fin,"%d%d",&m,&n);
| ^~~
| |
| FILE *
In file included from main.c:1:
/usr/include/stdio.h:421:42: note: expected 'const char * restrict' but argument is of type 'FILE *'
421 | extern int scanf (const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:10: warning: statement with no effect [-Wunused-value]
13 | for(i<10;i++){
| ~^~~
main.c:13:17: error: expected ';' before ')' token
13 | for(i<10;i++){
| ^
| ;
main.c:25:12: warning: passing argument 1 of 'printf' from incompatible pointer type [-Wincompatible-pointer-types]
25 | printf(fout,c);
| ^~~~
| |
| FILE *
In file included from /usr/include/stdio.h:906:
/usr/include/bits/stdio2.h:84:32: note: expected 'const char * restrict' but argument is of type 'FILE *'
84 | printf (const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:9:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf(fin,"%d%d",&m,&n);
| ^~~~~~~~~~~~~~~~~~~~~~~