Borderou de evaluare (job #654091)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numchar (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 iul. 2022 10:28:24 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:10:7: warning: implicit declaration of function 'fget'; did you mean 'fgets'? [-Wimplicit-function-declaration]
10 | ch=fget(fin);
| ^~~~
| fgets
main.c:11:24: error: expected ';' before 'return'
11 | fscanf(fin,"%d", &n)
| ^
| ;
12 |
13 | return 0;
| ~~~~~~
main.c:8:9: warning: variable 'ch' set but not used [-Wunused-but-set-variable]
8 | char ch;
| ^~
main.c:7:14: warning: unused variable 'x' [-Wunused-variable]
7 | int n,l,c,x;
| ^
main.c:7:12: warning: unused variable 'c' [-Wunused-variable]
7 | int n,l,c,x;
| ^
main.c:7:10: warning: unused variable 'l' [-Wunused-variable]
7 | int n,l,c,x;
| ^
main.c:6:16: warning: unused variable 'fout' [-Wunused-variable]
6 | FILE *fin, *fout;
| ^~~~
main.c:11:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin,"%d", &n)
| ^~~~~~~~~~~~~~~~~~~~