foo.c: In function 'main':
foo.c:18:14: error: conflicting types for 's'; have 'char[100000]'
18 | char s[100000] = { 0 };
| ^
foo.c:14:13: note: previous declaration of 's' with type 'int'
14 | int s, n;
| ^
foo.c:44:24: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
44 | int k; scanf("%d", k);
| ~^ ~
| | |
| | int
| int *
foo.c:18:14: warning: unused variable 's' [-Wunused-variable]
18 | char s[100000] = { 0 };
| ^
[Hydro](https://hydro.ac)提供评测服务