0_0_14537728_30383.cpp: In function 'bool BFS()':
0_0_14537728_30383.cpp:37:21: error: reference to 'next' is ambiguous
if (next[dis][i] != -1)
^
0_0_14537728_30383.cpp:9:23: note: candidates are: int next [1000100][2]
int n,m,l,sx,sy,ex,ey,next[1000100][2],pos[4],dir[1000100],dist[1100][1100][4];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14537728_30383.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_14537728_30383.cpp:39:57: error: reference to 'next' is ambiguous
if (dist[now.first][now.second][dir[next[dis][i]]] == 2*l)
^
0_0_14537728_30383.cpp:9:23: note: candidates are: int next [1000100][2]
int n,m,l,sx,sy,ex,ey,next[1000100][2],pos[4],dir[1000100],dist[1100][1100][4];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14537728_30383.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_14537728_30383.cpp:41:57: error: reference to 'next' is ambiguous
dist[now.first][now.second][dir[next[dis][i]]] = next[dis][i];
^
0_0_14537728_30383.cpp:9:23: note: candidates are: int next [1000100][2]
int n,m,l,sx,sy,ex,ey,next[1000100][2],pos[4],dir[1000100],dist[1100][1100][4];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14537728_30383.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_14537728_30383.cpp:41:74: error: reference to 'next' is ambiguous
dist[now.first][now.second][dir[next[dis][i]]] = next[dis][i];
^
0_0_14537728_30383.cpp:9:23: note: candidates are: int next [1000100][2]
int n,m,l,sx,sy,ex,ey,next[1000100][2],pos[4],dir[1000100],dist[1100][1100][4];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14537728_30383.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_14537728_30383.cpp:42:27: error: reference to 'next' is ambiguous
Q[next[dis][i]].push_back(now);
^
0_0_14537728_30383.cpp:9:23: note: candidates are: int next [1000100][2]
int n,m,l,sx,sy,ex,ey,next[1000100][2],pos[4],dir[1000100],dist[1100][1100][4];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14537728_30383.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_14537728_30383.cpp: In function 'void calcnext()':
0_0_14537728_30383.cpp:73:9: error: reference to 'next' is ambiguous
next[i][0] = pos[(dir[i]+3)%4];
^
0_0_14537728_30383.cpp:9:23: note: candidates are: int next [1000100][2]
int n,m,l,sx,sy,ex,ey,next[1000100][2],pos[4],dir[1000100],dist[1100][1100][4];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14537728_30383.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_14537728_30383.cpp:74:9: error: reference to 'next' is ambiguous
next[i][1] = pos[(dir[i]+1)%4];
^
0_0_14537728_30383.cpp:9:23: note: candidates are: int next [1000100][2]
int n,m,l,sx,sy,ex,ey,next[1000100][2],pos[4],dir[1000100],dist[1100][1100][4];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14537728_30383.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
^
|