0_0_17903814_6432.cpp: In function 'int bfs(Pos)':
0_0_17903814_6432.cpp:57:5: error: reference to 'next' is ambiguous
next.x[j] = now.x[j] + dx[i];
^
0_0_17903814_6432.cpp:21:10: note: candidates are: Pos next
Pos now, next;
^
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++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_17903814_6432.cpp:2:
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_17903814_6432.cpp:58:5: error: reference to 'next' is ambiguous
next.y[j] = now.y[j] + dy[i];
^
0_0_17903814_6432.cpp:21:10: note: candidates are: Pos next
Pos now, next;
^
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++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_17903814_6432.cpp:2:
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_17903814_6432.cpp:60:4: error: reference to 'next' is ambiguous
next.step = now.step + 1;
^
0_0_17903814_6432.cpp:21:10: note: candidates are: Pos next
Pos now, next;
^
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++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_17903814_6432.cpp:2:
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_17903814_6432.cpp:61:11: error: reference to 'next' is ambiguous
Q.push(next);
^
0_0_17903814_6432.cpp:21:10: note: candidates are: Pos next
Pos now, next;
^
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++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_17903814_6432.cpp:2:
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
^
|