race.cpp: In function 'void addedge(int, int, int, int)':
race.cpp:19:2: error: reference to 'next' is ambiguous
next[c]=st[s];
^~~~
race.cpp:10:33: note: candidates are: int next [400040]
int st[MV],en[MV<<1],len[MV<<1],next[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from race.cpp:3:
/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 find_mid(int)':
race.cpp:29:23: error: reference to 'next' is ambiguous
for(i=st[r];i!=-1;i=next[i]){
^~~~
race.cpp:10:33: note: candidates are: int next [400040]
int st[MV],en[MV<<1],len[MV<<1],next[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from race.cpp:3:
/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(int)':
race.cpp:40:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
check[x]=down[x]=1;
~~~~~~~^~
race.cpp:41:26: error: reference to 'next' is ambiguous
for(int i=st[x];i!=-1;i=next[i]){
^~~~
race.cpp:10:33: note: candidates are: int next [400040]
int st[MV],en[MV<<1],len[MV<<1],next[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from race.cpp:3:
/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 find_(int, int, int)':
race.cpp:50:26: error: reference to 'next' is ambiguous
for(int i=st[x];i!=-1;i=next[i]){
^~~~
race.cpp:10:33: note: candidates are: int next [400040]
int st[MV],en[MV<<1],len[MV<<1],next[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from race.cpp:3:
/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 put_(int, int, int)':
race.cpp:60:26: error: reference to 'next' is ambiguous
for(int i=st[x];i!=-1;i=next[i]){
^~~~
race.cpp:10:33: note: candidates are: int next [400040]
int st[MV],en[MV<<1],len[MV<<1],next[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from race.cpp:3:
/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:72:22: error: reference to 'next' is ambiguous
for(i=st[r];i!=-1;i=next[i]){
^~~~
race.cpp:10:33: note: candidates are: int next [400040]
int st[MV],en[MV<<1],len[MV<<1],next[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from race.cpp:3:
/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:77:22: error: reference to 'next' is ambiguous
for(i=st[r];i!=-1;i=next[i]){
^~~~
race.cpp:10:33: note: candidates are: int next [400040]
int st[MV],en[MV<<1],len[MV<<1],next[MV<<1];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/algorithm:61,
from race.cpp:3:
/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
^~~~