0_0_39756720_808.cpp: In function 'void dijkstra(int, int)':
0_0_39756720_808.cpp:20:9: error: reference to 'prev' is ambiguous
20 | prev[i] = vs;
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:66,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:244:5: note: candidates are: 'template<class _BidirectionalIterator> constexpr _BidirectionalIterator std::prev(_BidirectionalIterator, typename iterator_traits<_Iter>::difference_type)'
244 | prev(_BidirectionalIterator __x, typename
| ^~~~
0_0_39756720_808.cpp:7:5: note: 'int prev [200]'
7 | int prev[MAXN]; // 前驱数组
| ^~~~
0_0_39756720_808.cpp:42:17: error: reference to 'prev' is ambiguous
42 | prev[j] = k;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:244:5: note: candidates are: 'template<class _BidirectionalIterator> constexpr _BidirectionalIterator std::prev(_BidirectionalIterator, typename iterator_traits<_Iter>::difference_type)'
244 | prev(_BidirectionalIterator __x, typename
| ^~~~
0_0_39756720_808.cpp:7:5: note: 'int prev [200]'
7 | int prev[MAXN]; // 前驱数组
| ^~~~
|