Borderou de evaluare (job #646913)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Îngerași (clasa a 5-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 9 apr. 2022 12:11:38 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:9:7: error: 'i' undeclared (first use in this function)
9 | for (i=0;i<n,i+{
| ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'n' undeclared (first use in this function)
9 | for (i=0;i<n,i+{
| ^
main.c:9:17: error: expected expression before '{' token
9 | for (i=0;i<n,i+{
| ^
main.c:9:14: warning: left-hand operand of comma expression has no effect [-Wunused-value]
9 | for (i=0;i<n,i+{
| ^
main.c:19:17: error: expected ')' before ';' token
19 | fclose (fout);
| ^
| )
main.c:9:6: note: to match this '('
9 | for (i=0;i<n,i+{
| ^
main.c:21:2: error: expected expression before '}' token
21 | }
| ^
main.c:6:10: warning: variable 'fin' set but not used [-Wunused-but-set-variable]
6 | FILE *fin, *fout;
| ^~~
main.c:5:12: warning: unused variable 'h' [-Wunused-variable]
5 | int a,b,h;
| ^
main.c:5:10: warning: unused variable 'b' [-Wunused-variable]
5 | int a,b,h;
| ^
main.c:5:8: warning: unused variable 'a' [-Wunused-variable]
5 | int a,b,h;
| ^