answer.code: In function ‘void tarjan(int)’:
answer.code:12:20: error: reference to ‘visit’ is ambiguous
12 | q.push(x), visit[x] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:80,
from answer.code:1:
/usr/include/c++/13/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)
| ^~~~~
/usr/include/c++/13/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)
| ^~~~~
answer.code:5:39: note: ‘int visit [10005]’
5 | int wlth[N], WLTH[N], dfn[N], low[N], visit[N], part[N], du[N];
| ^~~~~
answer.code:20:25: error: reference to ‘visit’ is ambiguous
20 | else if(visit[eg[x][i]]) low[x] = min(low[x], dfn[eg[x][i]]);
| ^~~~~
/usr/include/c++/13/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)
| ^~~~~
/usr/include/c++/13/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)
| ^~~~~
answer.code:5:39: note: ‘int visit [10005]’
5 | int wlth[N], WLTH[N], dfn[N], low[N], visit[N], part[N], du[N];
| ^~~~~
answer.code:30:25: error: reference to ‘visit’ is ambiguous
30 | visit[y] = 0;
| ^~~~~
/usr/include/c++/13/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)
| ^~~~~
/usr/include/c++/13/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)
| ^~~~~
answer.code:5:39: note: ‘int visit [10005]’
5 | int wlth[N], WLTH[N], dfn[N], low[N], visit[N], part[N], du[N];
| ^~~~~