dreaming.cpp: In function 'void dfs1(int, int)':
dreaming.cpp:11:5: error: reference to 'visit' is ambiguous
11 | visit[nodo] = true;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from dreaming.cpp:2:
/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)
| ^~~~~
dreaming.cpp:6:14: note: 'std::vector<bool> visit'
6 | vector<bool> visit;
| ^~~~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:48:5: error: reference to 'visit' is ambiguous
48 | visit.assign(N,false);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from dreaming.cpp:2:
/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)
| ^~~~~
dreaming.cpp:6:14: note: 'std::vector<bool> visit'
6 | vector<bool> visit;
| ^~~~~
dreaming.cpp:55:12: error: reference to 'visit' is ambiguous
55 | if(visit[i] == false){
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from dreaming.cpp:2:
/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)
| ^~~~~
dreaming.cpp:6:14: note: 'std::vector<bool> visit'
6 | vector<bool> visit;
| ^~~~~