Borderou de evaluare (job #783678)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numchar (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 aug. 2024 12:10:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:19:19: error: expected ')' before 'and'
19 | if(c >='0' and c <= '9')
| ~ ^~~~
| )
main.c:21:23: error: expected ')' before 'and'
21 | else if(c>='a' and c<='z' or c>='A' and c<='Z')
| ~ ^~~~
| )
main.c:10:6: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | freopen("numchar.in","r",stdin) ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:11:6: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | freopen ("numchar.out","w",stdout) ;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf ("%d\n",& n);
| ^~~~~~~~~~~~~~~~~~
main.c:18:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%c",&c);
| ^~~~~~~~~~~~~~