Main.cpp:6:14: error: 'int index [200001]' redeclared as different kind of entity
6 | int index[N+1], value[N+1], n, q;
| ^
In file included from /usr/include/string.h:462,
from /usr/include/c++/11/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:48,
from Main.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
Main.cpp: In function 'int main()':
Main.cpp:18:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
18 | index[i] = index[i-1] + cnt;
| ^
Main.cpp:18:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
18 | index[i] = index[i-1] + cnt;
| ^
Main.cpp:24:37: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
24 | auto it = lower_bound(index + 1, index + n + 1, x);
| ~~~~~~^~~
Main.cpp:24:48: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
24 | auto it = lower_bound(index + 1, index + n + 1, x);
| ~~~~~~^~~