foo.c: In function 'main':
foo.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:16: warning: statement with no effect [-Wunused-value]
int a[10005]{ '\0' }, n, k, s;
^~~~
foo.c:5:21: error: expected ';' before '}' token
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:22: error: expected expression before ',' token
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:24: error: 'n' undeclared (first use in this function)
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:22: warning: left-hand operand of comma expression has no effect [-Wunused-value]
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:27: error: 'k' undeclared (first use in this function)
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:25: warning: left-hand operand of comma expression has no effect [-Wunused-value]
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:30: error: 's' undeclared (first use in this function)
int a[10005]{ '\0' }, n, k, s;
^
foo.c:5:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
int a[10005]{ '\0' }, n, k, s;
^
foo.c:8:16: error: 'a' undeclared (first use in this function)
scanf("%d", &a[i]);
^
[Hydro](https://hydro.ac)提供评测服务