vudu.cpp:9:19: error: 'll index [1000005]' redeclared as different kind of entity
9 | int index[5 + nmax], aib[5 + nmax];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from vudu.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
| ^~~~~
vudu.cpp: In function 'void normalize(ll)':
vudu.cpp:17:8: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
17 | index[aux[1].second] = 1;
| ^
vudu.cpp:21:10: error: invalid types '<unresolved overloaded function type>[long long int]' for array subscript
21 | index[aux[i].second] = cnt;
| ^
vudu.cpp: In function 'int main()':
vudu.cpp:54:23: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
54 | ans += query(index[i]);
| ^
vudu.cpp:55:17: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
55 | update(index[i]);
| ^