race.cpp: In function 'void addedge(int, int, int, int)':
race.cpp:21:2: error: reference to 'next' is ambiguous
next[c]=st[s];
^~~~
race.cpp:10:22: note: candidates are: int next [400040]
int st[MV],en[MV<<1],next[MV<<1],len[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/map:60,
from race.cpp:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
race.cpp: In function 'int dfs(int)':
race.cpp:31:22: error: reference to 'next' is ambiguous
for(i=st[x];i!=-1;i=next[i]){
^~~~
race.cpp:10:22: note: candidates are: int next [400040]
int st[MV],en[MV<<1],next[MV<<1],len[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/map:60,
from race.cpp:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
race.cpp: In function 'void dfs_ans(int, int, int)':
race.cpp:42:26: error: reference to 'next' is ambiguous
for(int i=st[x];i!=-1;i=next[i]){
^~~~
race.cpp:10:22: note: candidates are: int next [400040]
int st[MV],en[MV<<1],next[MV<<1],len[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/map:60,
from race.cpp:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
race.cpp: In function 'void dfs_map(int, int, int)':
race.cpp:52:26: error: reference to 'next' is ambiguous
for(int i=st[x];i!=-1;i=next[i]){
^~~~
race.cpp:10:22: note: candidates are: int next [400040]
int st[MV],en[MV<<1],next[MV<<1],len[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/map:60,
from race.cpp:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
race.cpp: In function 'void solve(int)':
race.cpp:63:23: error: reference to 'next' is ambiguous
for(i=st[r];i!=-1;i=next[i]){
^~~~
race.cpp:10:22: note: candidates are: int next [400040]
int st[MV],en[MV<<1],next[MV<<1],len[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/map:60,
from race.cpp:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
race.cpp:74:22: error: reference to 'next' is ambiguous
for(i=st[r];i!=-1;i=next[i]){
^~~~
race.cpp:10:22: note: candidates are: int next [400040]
int st[MV],en[MV<<1],next[MV<<1],len[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/map:60,
from race.cpp:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
race.cpp:80:22: error: reference to 'next' is ambiguous
for(i=st[r];i!=-1;i=next[i]){
^~~~
race.cpp:10:22: note: candidates are: int next [400040]
int st[MV],en[MV<<1],next[MV<<1],len[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/map:60,
from race.cpp:2:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~