0_0_39602269_10915.cpp: In function 'void BFS(int, int)':
0_0_39602269_10915.cpp:37:12: error: reference to 'visit' is ambiguous
37 | 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_39602269_10915.cpp:9:5: note: 'int visit [10010]'
9 | int visit[10000+10];
| ^~~~~
0_0_39602269_10915.cpp:37:27: error: reference to 'visit' is ambiguous
37 | 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_39602269_10915.cpp:9:5: note: 'int visit [10010]'
9 | int visit[10000+10];
| ^~~~~
0_0_39602269_10915.cpp:55:21: error: reference to 'visit' is ambiguous
55 | if(!visit[a[i]]){
| ^~~~~
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_39602269_10915.cpp:9:5: note: 'int visit [10010]'
9 | int visit[10000+10];
| ^~~~~
0_0_39602269_10915.cpp:56:21: error: reference to 'visit' is ambiguous
56 | visit[a[i]]=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_39602269_10915.cpp:9:5: note: 'int visit [10010]'
9 | int visit[10000+10];
| ^~~~~
|