foo.c: In function 'main':
foo.c:5:9: error: expected ';' before 'int'
5 | int a
| ^
| ;
6 | int b
| ~~~
foo.c:6:9: error: expected ';' before 'int'
6 | int b
| ^
| ;
7 | int c=1
| ~~~
foo.c:8:4: error: expected ',' or ';' before 'int'
8 | int d=1
| ^~~
foo.c:12:4: error: 'e' undeclared (first use in this function)
12 | e=d
| ^
foo.c:12:4: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:6: error: 'd' undeclared (first use in this function)
12 | e=d
| ^
foo.c:12:7: error: expected ';' before 'd'
12 | e=d
| ^
| ;
13 | d=d+c
| ~
foo.c:22:9: error: expected declaration or statement at end of input
22 | }
| ^
foo.c:7:8: warning: unused variable 'c' [-Wunused-variable]
7 | int c=1
| ^
[Hydro](https://hydro.ac)提供评测服务