foo.c: In function 'main':
foo.c:7:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' }, n, p, s, d[10005], q;
^
foo.c:7:17: warning: statement with no effect [-Wunused-value]
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' }, n, p, s, d[10005], q;
^~~~
foo.c:7:22: error: expected ';' before '}' token
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' }, n, p, s, d[10005], q;
^
foo.c:7:23: error: expected expression before ',' token
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' }, n, p, s, d[10005], q;
^
foo.c:7:25: error: 'a2' undeclared (first use in this function)
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' }, n, p, s, d[10005], q;
^~
foo.c:7:25: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' }, n, p, s, d[10005], q;
^
foo.c:8:19: error: 'n' undeclared (first use in this function)
scanf("%d%d%d", &n, &p, &s);
^
foo.c:8:23: error: 'p' undeclared (first use in this function)
scanf("%d%d%d", &n, &p, &s);
^
foo.c:8:27: error: 's' undeclared (first use in this function)
scanf("%d%d%d", &n, &p, &s);
^
foo.c:10:16: error: 'a1' undeclared (first use in this function); did you mean 'a2'?
scanf("%d", &a1[i]);
^~
a2
foo.c:12:3: error: 'd' undeclared (first use in this function)
d[i] = a1[i];
^
foo.c:13:2: error: 'q' undeclared (first use in this function)
q = n;
^
foo.c:17:16: error: 'a3' undeclared (first use in this function); did you mean 'a1'?
scanf("%d", &a3[i]);
^~
a1
foo.c: In function 'Insert':
foo.c:58:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
[Hydro](https://hydro.ac)提供评测服务