foo.c: In function 'main':
foo.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
int a[10005]{ '\0' }, b[10005]{ '\0' };
^
foo.c:7:16: warning: statement with no effect [-Wunused-value]
int a[10005]{ '\0' }, b[10005]{ '\0' };
^~~~
foo.c:7:21: error: expected ';' before '}' token
int a[10005]{ '\0' }, b[10005]{ '\0' };
^
foo.c:7:22: error: expected expression before ',' token
int a[10005]{ '\0' }, b[10005]{ '\0' };
^
foo.c:7:24: error: 'b' undeclared (first use in this function)
int a[10005]{ '\0' }, b[10005]{ '\0' };
^
foo.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:22: warning: left-hand operand of comma expression has no effect [-Wunused-value]
int a[10005]{ '\0' }, b[10005]{ '\0' };
^
foo.c:9:16: error: 'a' undeclared (first use in this function)
scanf("%d", &a[i]);
^
foo.c: In function 'FindAscCount':
foo.c:28:2: error: expected declaration or statement at end of input
return c;
^~~~~~
foo.c: In function 'main':
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &p);
^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务