Main.cpp: In function 'void dfs(int, int&)':
Main.cpp:29:5: error: reference to 'visit' is ambiguous
29 | visit[u] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from Main.cpp:6:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
Main.cpp:25:48: note: 'int visit [3005]'
25 | int N, K, Q, A[MAXN], res[MAXN], deg_in[MAXN], visit[MAXN], exist[MAXN];
| ^~~~~
Main.cpp:30:30: error: reference to 'visit' is ambiguous
30 | for (auto v : adj[u]) if(visit[v] < 2) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from Main.cpp:6:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
Main.cpp:25:48: note: 'int visit [3005]'
25 | int N, K, Q, A[MAXN], res[MAXN], deg_in[MAXN], visit[MAXN], exist[MAXN];
| ^~~~~
Main.cpp:31:12: error: reference to 'visit' is ambiguous
31 | if(visit[v] == 1) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from Main.cpp:6:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
Main.cpp:25:48: note: 'int visit [3005]'
25 | int N, K, Q, A[MAXN], res[MAXN], deg_in[MAXN], visit[MAXN], exist[MAXN];
| ^~~~~
Main.cpp:38:5: error: reference to 'visit' is ambiguous
38 | visit[u] = 2;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from Main.cpp:6:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
Main.cpp:25:48: note: 'int visit [3005]'
25 | int N, K, Q, A[MAXN], res[MAXN], deg_in[MAXN], visit[MAXN], exist[MAXN];
| ^~~~~
Main.cpp: In function 'bool not_cycles(int, int)':
Main.cpp:44:10: error: reference to 'visit' is ambiguous
44 | fill(visit + 1, visit + K + 1, 0);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from Main.cpp:6:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
Main.cpp:25:48: note: 'int visit [3005]'
25 | int N, K, Q, A[MAXN], res[MAXN], deg_in[MAXN], visit[MAXN], exist[MAXN];
| ^~~~~
Main.cpp:44:21: error: reference to 'visit' is ambiguous
44 | fill(visit + 1, visit + K + 1, 0);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from Main.cpp:6:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
Main.cpp:25:48: note: 'int visit [3005]'
25 | int N, K, Q, A[MAXN], res[MAXN], deg_in[MAXN], visit[MAXN], exist[MAXN];
| ^~~~~
Main.cpp:75:34: error: reference to 'visit' is ambiguous
75 | FOR(i, 1, K) if(exist[i] && !visit[i]) return false;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from Main.cpp:6:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
Main.cpp:25:48: note: 'int visit [3005]'
25 | int N, K, Q, A[MAXN], res[MAXN], deg_in[MAXN], visit[MAXN], exist[MAXN];
| ^~~~~