0_0_38568937_4949.cpp: In function 'bool DFS(int, int, int)':
0_0_38568937_4949.cpp:27:31: error: reference to 'visit' is ambiguous
27 | if(a[i]>side||visit[i]==1||sum+a[i]>side||a[i]==ans)
| ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1768 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_38568937_4949.cpp:13:6: note: 'bool visit [25]'
13 | bool visit[Max];
| ^~~~~
0_0_38568937_4949.cpp:31:17: error: reference to 'visit' is ambiguous
31 | visit[i]=1;
| ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1768 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_38568937_4949.cpp:13:6: note: 'bool visit [25]'
13 | bool visit[Max];
| ^~~~~
0_0_38568937_4949.cpp:45:17: error: reference to 'visit' is ambiguous
45 | visit[i]=0;
| ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1768 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_38568937_4949.cpp:13:6: note: 'bool visit [25]'
13 | bool visit[Max];
| ^~~~~
0_0_38568937_4949.cpp: In function 'int main()':
0_0_38568937_4949.cpp:62:24: error: reference to 'visit' is ambiguous
62 | memset(visit,0,sizeof(visit));
| ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1768 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_38568937_4949.cpp:13:6: note: 'bool visit [25]'
13 | bool visit[Max];
| ^~~~~
0_0_38568937_4949.cpp:62:39: error: reference to 'visit' is ambiguous
62 | memset(visit,0,sizeof(visit));
| ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1768 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_38568937_4949.cpp:13:6: note: 'bool visit [25]'
13 | bool visit[Max];
| ^~~~~
0_0_38568937_4949.cpp:70:33: error: reference to 'visit' is ambiguous
70 | visit[0]=1;
| ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
1768 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
0_0_38568937_4949.cpp:13:6: note: 'bool visit [25]'
13 | bool visit[Max];
| ^~~~~
|