foo.c: In function 'main':
foo.c:5:9: warning: right-hand operand of comma expression has no effect [-Wunused-value]
5 | for(i=0,i<n,i++)
| ^
foo.c:5:17: error: expected ';' before ')' token
5 | for(i=0,i<n,i++)
| ^
| ;
foo.c:5:17: error: expected expression before ')' token
foo.c:16:9: warning: right-hand operand of comma expression has no effect [-Wunused-value]
16 | for(a=0,a<n,a++)
| ^
foo.c:16:17: error: expected ';' before ')' token
16 | for(a=0,a<n,a++)
| ^
| ;
foo.c:16:17: error: expected expression before ')' token
foo.c:17:16: error: 'num' undeclared (first use in this function)
17 | {printf("%d ",num[a]);
| ^~~
foo.c:17:16: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务