foo.c: In function 'main':
foo.c:6:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
6 | scanf("%d",z);
| ^~~~~
foo.c:9:16: warning: right-hand operand of comma expression has no effect [-Wunused-value]
9 | for(i=1,i>=1,i++)
| ^
foo.c:9:25: error: expected ';' before ')' token
9 | for(i=1,i>=1,i++)
| ^
| ;
foo.c:9:25: error: expected expression before ')' token
foo.c:17:25: error: 'k' undeclared (first use in this function)
17 | k=x%3;
| ^
foo.c:17:25: note: each undeclared identifier is reported only once for each function it appears in
foo.c:28:17: error: expected ';' before '}' token
28 | return 0
| ^
| ;
29 |
30 | }
| ~
[Hydro](https://hydro.ac)提供评测服务