eastereggs.cpp: In function 'void dfs(int)':
eastereggs.cpp:15:8: error: reference to 'visit' is ambiguous
15 | if(visit[u]) return;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from grader.h:1,
from eastereggs.cpp:3:
/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)
| ^~~~~
eastereggs.cpp:11:13: note: 'std::vector<int> visit'
11 | vector<int> visit(1+maxN, 0);
| ^~~~~