foo.cpp: In function 'void make_next()':
foo.cpp:24:5: error: reference to 'next' is ambiguous
next[n][0] = next[n][1] = -1; jh.insert(alt[n]);
^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
ll next[100010][2];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/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
^
foo.cpp:24:18: error: reference to 'next' is ambiguous
next[n][0] = next[n][1] = -1; jh.insert(alt[n]);
^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
ll next[100010][2];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/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
^
foo.cpp:25:5: error: reference to 'next' is ambiguous
next[n-1][0] = -1; next[n-1][1] = n; jh.insert(alt[n-1]);
^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
ll next[100010][2];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/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
^
foo.cpp:25:24: error: reference to 'next' is ambiguous
next[n-1][0] = -1; next[n-1][1] = n; jh.insert(alt[n-1]);
^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
ll next[100010][2];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/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
^
foo.cpp:38:36: error: reference to 'next' is ambiguous
if ( hjl < qql ) next[i][j] = ys[*hj];
^
foo.cpp:15:4: note: candidates are: long long int next [100010][2]
ll next[100010][2];
^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:66:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_tree.h:61,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/set:60,
from foo.cpp:4:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_I