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