0_0_39018768_10761.cpp: In function 'void bfs(node)':
0_0_39018768_10761.cpp:48:9: error: reference to 'visit' is ambiguous
48 | visit[nd.num[0]][nd.num[1]][nd.num[2]][nd.num[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_39018768_10761.cpp:4:5: note: 'int visit [10][10][10][10]'
4 | int visit[10][10][10][10];// 代表每一位的状态
| ^~~~~
0_0_39018768_10761.cpp:71:28: error: reference to 'visit' is ambiguous
71 | if(visit[newnd.num[0]][newnd.num[1]][newnd.num[2]][newnd.num[3]]==0)
| ^~~~~
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_39018768_10761.cpp:4:5: note: 'int visit [10][10][10][10]'
4 | int visit[10][10][10][10];// 代表每一位的状态
| ^~~~~
0_0_39018768_10761.cpp:73:33: error: reference to 'visit' is ambiguous
73 | visit[newnd.num[0]][newnd.num[1]][newnd.num[2]][newnd.num[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_39018768_10761.cpp:4:5: note: 'int visit [10][10][10][10]'
4 | int visit[10][10][10][10];// 代表每一位的状态
| ^~~~~
0_0_39018768_10761.cpp: In function 'int main()':
0_0_39018768_10761.cpp:99:16: error: reference to 'visit' is ambiguous
99 | 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_39018768_10761.cpp:4:5: note: 'int visit [10][10][10][10]'
4 | int visit[10][10][10][10];// 代表每一位的状态
| ^~~~~
0_0_39018768_10761.cpp:99:33: error: reference to 'visit' is ambiguous
99 | 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_39018768_10761.cpp:4:5: note: 'int visit [10][10][10][10]'
4 | int visit[10][10][10][10];// 代表每一位的状态
| ^~~~~
|