eastereggs.cpp: In function 'void push1(int, int)':
eastereggs.cpp:69:23: error: reference to 'visit' is ambiguous
69 | if(dep[node]<=der && visit[node]==0)vec.pb(node);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from grader.h:1,
from eastereggs.cpp:6:
/usr/include/c++/9/variant:1649:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1649 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
eastereggs.cpp:32:74: note: 'int visit [5555]'
32 | int n,m,b[li],a[li],k,t,say,vis[li],mn[li],mx[li],mini,maxi,leaf,dep[li],visit[li],der,derin[li],leaff[li];
| ^~~~~
eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:84:23: error: reference to 'visit' is ambiguous
84 | for(int i=1;i<=N;i++)visit[i]=0;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from grader.h:1,
from eastereggs.cpp:6:
/usr/include/c++/9/variant:1649:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1649 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
eastereggs.cpp:32:74: note: 'int visit [5555]'
32 | int n,m,b[li],a[li],k,t,say,vis[li],mn[li],mx[li],mini,maxi,leaf,dep[li],visit[li],der,derin[li],leaff[li];
| ^~~~~
eastereggs.cpp:110:38: error: reference to 'visit' is ambiguous
110 | for(int i=0;i<(int)vec.size();i++)visit[vec[i]]=1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from grader.h:1,
from eastereggs.cpp:6:
/usr/include/c++/9/variant:1649:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1649 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
eastereggs.cpp:32:74: note: 'int visit [5555]'
32 | int n,m,b[li],a[li],k,t,say,vis[li],mn[li],mx[li],mini,maxi,leaf,dep[li],visit[li],der,derin[li],leaff[li];
| ^~~~~