foo.c: In function 'main':
foo.c:6:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
^
foo.c:6:17: warning: statement with no effect [-Wunused-value]
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
^~~~
foo.c:6:22: error: expected ';' before '}' token
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
^
foo.c:6:23: error: expected expression before ',' token
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
^
foo.c:6:25: error: 'a2' undeclared (first use in this function)
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
^~
foo.c:6:25: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
^
foo.c:9:16: error: 'a1' undeclared (first use in this function); did you mean 'a2'?
scanf("%d", &a1[i]);
^~
a2
foo.c:13:16: error: 'a3' undeclared (first use in this function); did you mean 'a1'?
scanf("%d", &a3[i]);
^~
a1
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &s, &p);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务