race.cpp: In function 'void edge(int, int, int)':
race.cpp:19:2: error: reference to 'next' is ambiguous
next[g] = head[a]; head[a] = g; to[g] = b; co[g++] = c;
^~~~
race.cpp:16:15: note: candidates are: int next [400005]
int head[MX], next[MG], to[MG], co[MG], g;
^~~~
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 csub(int, int)':
race.cpp:28:36: error: reference to 'next' is ambiguous
for(int i = head[v]; i != -1; i = next[i]){
^~~~
race.cpp:16:15: note: candidates are: int next [400005]
int head[MX], next[MG], to[MG], co[MG], g;
^~~~
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 'P ccen(int, int, int)':
race.cpp:38:36: error: reference to 'next' is ambiguous
for(int i = head[v]; i != -1; i = next[i]){
^~~~
race.cpp:16:15: note: candidates are: int next [400005]
int head[MX], next[MG], to[MG], co[MG], g;
^~~~
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 enu(int, int, int, int)':
race.cpp:51:36: error: reference to 'next' is ambiguous
for(int i = head[v]; i != -1; i = next[i]){
^~~~
race.cpp:16:15: note: candidates are: int next [400005]
int head[MX], next[MG], to[MG], co[MG], g;
^~~~
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 sol(int)':
race.cpp:63:36: error: reference to 'next' is ambiguous
for(int i = head[c]; i != -1; i = next[i]){
^~~~
race.cpp:16:15: note: candidates are: int next [400005]
int head[MX], next[MG], to[MG], co[MG], g;
^~~~
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:70:36: error: reference to 'next' is ambiguous
for(int i = head[c]; i != -1; i = next[i]){
^~~~
race.cpp:16:15: note: candidates are: int next [400005]
int head[MX], next[MG], to[MG], co[MG], g;
^~~~
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
^~~~