0_0_28687424_9157.cpp: In function 'void bfs(int, int)':
0_0_28687424_9157.cpp:24:4: error: reference to 'next' is ambiguous
next.time=p.time-1;
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:25:4: error: reference to 'next' is ambiguous
next.step=p.step+1;
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:26:4: error: reference to 'next' is ambiguous
next.x=p.x+dir[i][0];
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:27:4: error: reference to 'next' is ambiguous
next.y=p.y+dir[i][1];
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:28:7: error: reference to 'next' is ambiguous
if(next.x>=0&&next.y>=0&&next.x<n&&next.y<m&&map[next.x][next.y]!=0&&next.time>0){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:28:18: error: reference to 'next' is ambiguous
if(next.x>=0&&next.y>=0&&next.x<n&&next.y<m&&map[next.x][next.y]!=0&&next.time>0){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:28:29: error: reference to 'next' is ambiguous
if(next.x>=0&&next.y>=0&&next.x<n&&next.y<m&&map[next.x][next.y]!=0&&next.time>0){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:28:39: error: reference to 'next' is ambiguous
if(next.x>=0&&next.y>=0&&next.x<n&&next.y<m&&map[next.x][next.y]!=0&&next.time>0){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:28:53: error: reference to 'next' is ambiguous
if(next.x>=0&&next.y>=0&&next.x<n&&next.y<m&&map[next.x][next.y]!=0&&next.time>0){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:28:61: error: reference to 'next' is ambiguous
if(next.x>=0&&next.y>=0&&next.x<n&&next.y<m&&map[next.x][next.y]!=0&&next.time>0){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:28:73: error: reference to 'next' is ambiguous
if(next.x>=0&&next.y>=0&&next.x<n&&next.y<m&&map[next.x][next.y]!=0&&next.time>0){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,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_28687424_9157.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_28687424_9157.cpp:29:12: error: reference to 'next' is ambiguous
if(map[next.x][next.y]==3){
^
0_0_28687424_9157.cpp:12:4: note: candidates are: node next
}p,next;
^
In file included from D:/HDO
|