0_0_19595985_26239.cpp: In function 'void dijk(int)':
0_0_19595985_26239.cpp:39:37: error: reference to 'next' is ambiguous
for (int i=adj[nv]; i!=0; i=next[i]) {
^
0_0_19595985_26239.cpp:16:29: note: candidates are: int next [10010]
int to[10010], cost[10010], next[10010];
^
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++/vector:60,
from 0_0_19595985_26239.cpp:9:
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_19595985_26239.cpp: In function 'void add_edge(int, int, int, int)':
0_0_19595985_26239.cpp:52:5: error: reference to 'next' is ambiguous
next[no]=adj[u];
^
0_0_19595985_26239.cpp:16:29: note: candidates are: int next [10010]
int to[10010], cost[10010], next[10010];
^
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++/vector:60,
from 0_0_19595985_26239.cpp:9:
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
^
|