0_0_39394383_7420.cpp: In function 'int bfs()':
0_0_39394383_7420.cpp:22:9: error: reference to 'visit' is ambiguous
22 | visit[now.a[0]][now.a[1]][now.a[2]][now.a[3]]=1;
| ^~~~~
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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp:41:29: error: reference to 'visit' is ambiguous
41 | if(!visit[nxt.a[0]][nxt.a[1]][nxt.a[2]][nxt.a[3]]){
| ^~~~~
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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp:43:33: error: reference to 'visit' is ambiguous
43 | visit[nxt.a[0]][nxt.a[1]][nxt.a[2]][nxt.a[3]]=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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp:52:29: error: reference to 'visit' is ambiguous
52 | if(!visit[nxt.a[0]][nxt.a[1]][nxt.a[2]][nxt.a[3]]){
| ^~~~~
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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp:54:33: error: reference to 'visit' is ambiguous
54 | visit[nxt.a[0]][nxt.a[1]][nxt.a[2]][nxt.a[3]]=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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp:62:29: error: reference to 'visit' is ambiguous
62 | if(!visit[nxt.a[0]][nxt.a[1]][nxt.a[2]][nxt.a[3]]){
| ^~~~~
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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp:64:33: error: reference to 'visit' is ambiguous
64 | visit[nxt.a[0]][nxt.a[1]][nxt.a[2]][nxt.a[3]]=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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp: In function 'int main()':
0_0_39394383_7420.cpp:74:24: error: reference to 'visit' is ambiguous
74 | memset(visit,false,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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
0_0_39394383_7420.cpp:74:43: error: reference to 'visit' is ambiguous
74 | memset(visit,false,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_39394383_7420.cpp:8:6: note: 'bool visit [10][10][10][10]'
8 | bool visit[10][10][10][10];//标记
| ^~~~~
|