0_0_17816631_15140.cpp: In function 'int find(int)':
0_0_17816631_15140.cpp:38:12: error: reference to 'next' is ambiguous
for(p = x;next[p] >= 0;p = next[p]);
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp:38:29: error: reference to 'next' is ambiguous
for(p = x;next[p] >= 0;p = next[p]);
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp:41:9: error: reference to 'next' is ambiguous
tmp = next[x];
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp:42:3: error: reference to 'next' is ambiguous
next[x] = p;
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp: In function 'void Union(int, int)':
0_0_17816631_15140.cpp:55:2: error: reference to 'next' is ambiguous
next[X] += next[Y];
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp:55:13: error: reference to 'next' is ambiguous
next[X] += next[Y];
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp:56:2: error: reference to 'next' is ambiguous
next[Y] = X;
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp: In function 'int main()':
0_0_17816631_15140.cpp:118:10: error: reference to 'next' is ambiguous
memset(next, ~0u, sizeof(next));
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17816631_15140.cpp:118:28: error: reference to 'next' is ambiguous
memset(next, ~0u, sizeof(next));
^
0_0_17816631_15140.cpp:25:20: note: candidates are: int next [110000]
int minimal[NMAX], next[NMAX];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_17816631_15140.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
|