0_0_39194015_13511.cpp: In function 'void dijkstra(int)':
0_0_39194015_13511.cpp:20:12: error: reference to 'visit' is ambiguous
20 | memset(visit,0,sizeof visit);
| ^~~~~
In file included from .\stdc++.h:80:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
1867 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1827 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_39194015_13511.cpp:7:5: note: 'int visit [1005]'
7 | int visit[1005];
| ^~~~~
0_0_39194015_13511.cpp:20:27: error: reference to 'visit' is ambiguous
20 | memset(visit,0,sizeof visit);
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
1867 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1827 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_39194015_13511.cpp:7:5: note: 'int visit [1005]'
7 | int visit[1005];
| ^~~~~
0_0_39194015_13511.cpp:31:9: error: reference to 'visit' is ambiguous
31 | visit[id]=1;
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
1867 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1827 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_39194015_13511.cpp:7:5: note: 'int visit [1005]'
7 | int visit[1005];
| ^~~~~
0_0_39194015_13511.cpp:33:17: error: reference to 'visit' is ambiguous
33 | if(!visit[i]&&dis[i]>map[id][i]+val){
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
1867 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1827 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_39194015_13511.cpp:7:5: note: 'int visit [1005]'
7 | int visit[1005];
| ^~~~~
0_0_39194015_13511.cpp:33:34: error: reference to 'map' is ambiguous
33 | if(!visit[i]&&dis[i]>map[id][i]+val){
| ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
from .\stdc++.h:152:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:34:24: error: reference to 'map' is ambiguous
34 | dis[i]=map[id][i]+val;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:36:28: error: reference to 'map' is ambiguous
36 | nt.val=val+map[id][i];
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp: In function 'int main()':
0_0_39194015_13511.cpp:48:26: error: reference to 'map' is ambiguous
48 | if(i==j) map[i][j]=0;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:49:22: error: reference to 'map' is ambiguous
49 | else map[i][j]=INF;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:56:16: error: reference to 'map' is ambiguous
56 | if(map[a][b]>c) map[a][b]=map[b][a]=c;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:56:29: error: reference to 'map' is ambiguous
56 | if(map[a][b]>c) map[a][b]=map[b][a]=c;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:56:39: error: reference to 'map' is ambiguous
56 | if(map[a][b]>c) map[a][b]=map[b][a]=c;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:60:13: error: reference to 'map' is ambiguous
60 | map[0][s[i]]=map[s[i]][0]=0;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
0_0_39194015_13511.cpp:60:26: error: reference to 'map' is ambiguous
60 | map[0][s[i]]=map[s[i]][0]=0;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: candidates are: 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_39194015_13511.cpp:8:5: note: 'int map [1005][1005]'
8 | int map[1005][1005];
| ^~~
|