foo.c: In function 'main':
foo.c:6:17: error: expected ',' or ';' before 'printf'
6 | printf("请输入一个正整数:");
| ^~~~~~
foo.c:8:15: error: 'n' undeclared (first use in this function)
8 | int b[n];
| ^
foo.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for(i=0;a!=0;i++);
| ^~~
foo.c:11:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
11 | {
| ^
foo.c:12:9: error: 'c' undeclared (first use in this function)
12 | c[i]=a%2;
| ^
foo.c:17:17: error: expected ';' before '}' token
17 | return 0
| ^
| ;
18 | }
| ~
foo.c:8:13: warning: unused variable 'b' [-Wunused-variable]
8 | int b[n];
| ^
[Hydro](https://hydro.ac)提供评测服务