foo.c: In function 'main':
foo.c:3:2: error: 'inta' undeclared (first use in this function); did you mean 'int'?
3 | {inta,b,s;
| ^~~~
| int
foo.c:3:2: note: each undeclared identifier is reported only once for each function it appears in
foo.c:3:7: error: 'b' undeclared (first use in this function)
3 | {inta,b,s;
| ^
foo.c:3:6: warning: left-hand operand of comma expression has no effect [-Wunused-value]
3 | {inta,b,s;
| ^
foo.c:3:9: error: 's' undeclared (first use in this function)
3 | {inta,b,s;
| ^
foo.c:3:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
3 | {inta,b,s;
| ^
foo.c:4:15: error: 'a' undeclared (first use in this function)
4 | scanf("%d%d",a,b);
| ^
foo.c:5:7: warning: left-hand operand of comma expression has no effect [-Wunused-value]
5 | for(a,b,s=0;a<=b;a++)
| ^
foo.c:5:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
5 | for(a,b,s=0;a<=b;a++)
| ^
foo.c:6:8: error: expected ';' before '}' token
6 | {s=s+a
| ^
| ;
......
9 | }
| ~
[Hydro](https://hydro.ac)提供评测服务