trampoline.cpp: In function 'void dfs(int)':
trampoline.cpp:8:2: error: reference to 'visit' is ambiguous
8 | visit[v] = true;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from trampoline.cpp:1:
/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)
| ^~~~~
trampoline.cpp:6:13: note: 'std::vector<bool> visit'
6 | vector<bool>visit;
| ^~~~~
trampoline.cpp:9:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for (int i = 0; i < vec[v].size(); i++) {
| ~~^~~~~~~~~~~~~~~
trampoline.cpp:10:8: error: reference to 'visit' is ambiguous
10 | if (!visit[vec[v][i]])
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from trampoline.cpp:1:
/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)
| ^~~~~
trampoline.cpp:6:13: note: 'std::vector<bool> visit'
6 | vector<bool>visit;
| ^~~~~
trampoline.cpp: In function 'int main()':
trampoline.cpp:25:2: error: reference to 'visit' is ambiguous
25 | visit.resize(r * c, false);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from trampoline.cpp:1:
/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)
| ^~~~~
trampoline.cpp:6:13: note: 'std::vector<bool> visit'
6 | vector<bool>visit;
| ^~~~~
trampoline.cpp:47:7: error: reference to 'visit' is ambiguous
47 | if (visit[y2 * c + x2])
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from trampoline.cpp:1:
/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)
| ^~~~~
trampoline.cpp:6:13: note: 'std::vector<bool> visit'
6 | vector<bool>visit;
| ^~~~~
trampoline.cpp:53:4: error: reference to 'visit' is ambiguous
53 | visit[i] = false;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from trampoline.cpp:1:
/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)
| ^~~~~
trampoline.cpp:6:13: note: 'std::vector<bool> visit'
6 | vector<bool>visit;
| ^~~~~