0_0_38655229_31902.cpp: In function 'void init(int)':
0_0_38655229_31902.cpp:31:9: error: reference to 'next' is ambiguous
next[i].clear();//清空临界表
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:60,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/queue:60,
from 0_0_38655229_31902.cpp:4:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38655229_31902.cpp:24:13: note: 'std::vector<int> next [300030]'
vector<int> next[max_n];//每个结点出发的边编号
^~~~
0_0_38655229_31902.cpp: In function 'void add_edge(int, int, int)':
0_0_38655229_31902.cpp:40:5: error: reference to 'next' is ambiguous
next[from].push_back(count-1);
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:60,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/queue:60,
from 0_0_38655229_31902.cpp:4:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38655229_31902.cpp:24:13: note: 'std::vector<int> next [300030]'
vector<int> next[max_n];//每个结点出发的边编号
^~~~
0_0_38655229_31902.cpp: In function 'void dij()':
0_0_38655229_31902.cpp:56:23: error: reference to 'next' is ambiguous
for(int i=0;i<next[u].size();i++){
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:60,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/queue:60,
from 0_0_38655229_31902.cpp:4:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38655229_31902.cpp:24:13: note: 'std::vector<int> next [300030]'
vector<int> next[max_n];//每个结点出发的边编号
^~~~
0_0_38655229_31902.cpp:57:27: error: reference to 'next' is ambiguous
Edge& e=edges[next[u][i]];
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:60,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/queue:60,
from 0_0_38655229_31902.cpp:4:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38655229_31902.cpp:24:13: note: 'std::vector<int> next [300030]'
vector<int> next[max_n];//每个结点出发的边编号
^~~~
|