0_0_17228148_19264.cpp: In function 'void Search(int, int)':
0_0_17228148_19264.cpp:34:22: error: reference to 'next' is ambiguous
for (int j = next[a][i]; j != -1; j = next[j][M]) {
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp:34:47: error: reference to 'next' is ambiguous
for (int j = next[a][i]; j != -1; j = next[j][M]) {
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp:46:22: error: reference to 'next' is ambiguous
for (int j = next[a][i]; j != -1 && j <= b; j = next[j][M]) {
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp:46:57: error: reference to 'next' is ambiguous
for (int j = next[a][i]; j != -1 && j <= b; j = next[j][M]) {
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp:47:26: error: reference to 'next' is ambiguous
for (int k = next[j][i]; k != -1 && k <= b; k = next[k][M]) {
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp:47:61: error: reference to 'next' is ambiguous
for (int k = next[j][i]; k != -1 && k <= b; k = next[k][M]) {
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp: In function 'int main()':
0_0_17228148_19264.cpp:79:17: error: reference to 'next' is ambiguous
next[j][i] = to[A[j] + D[i]];
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp:80:21: error: reference to 'next' is ambiguous
if (next[j][i] == 0)
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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_17228148_19264.cpp:81:21: error: reference to 'next' is ambiguous
next[j][i] = -1;
^
0_0_17228148_19264.cpp:18:5: note: candidates are: int next [310][310]
int next[MaxN][MaxN], f[MaxN], A[MaxN], D[MaxN];
^
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++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_17228148_19264.cpp:1:
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
^
|