regions.cpp:7:23: error: 'std::vector<int> index [25001]' redeclared as different kind of entity
7 | vector<int>index[25001];
| ^
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 regions.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
| ^~~~~
regions.cpp: In function 'void dfs(int)':
regions.cpp:12:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
12 | index[reg[n]].push_back(ticker);
| ^
regions.cpp: In function 'int main()':
regions.cpp:44:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
44 | if(index[i].size()>=bucket)large.push_back(i);
| ^
regions.cpp:49:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
49 | if(index[x].size()>=bucket)cout<<ans[{x,y}]<<endl;
| ^
regions.cpp:53:43: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
53 | int pos1=upper_bound(index[y].begin(),index[y].end(),beg[ind])-index[y].begin();
| ^
regions.cpp:53:60: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
53 | int pos1=upper_bound(index[y].begin(),index[y].end(),beg[ind])-index[y].begin();
| ^
regions.cpp:53:85: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
53 | int pos1=upper_bound(index[y].begin(),index[y].end(),beg[ind])-index[y].begin();
| ^
regions.cpp:54:43: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
54 | int pos2=upper_bound(index[y].begin(),index[y].end(),en[ind])-index[y].begin();
| ^
regions.cpp:54:60: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
54 | int pos2=upper_bound(index[y].begin(),index[y].end(),en[ind])-index[y].begin();
| ^
regions.cpp:54:84: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
54 | int pos2=upper_bound(index[y].begin(),index[y].end(),en[ind])-index[y].begin();
| ^