menesinis_bilietas.cpp: In function 'void dfs(int, int, int)':
menesinis_bilietas.cpp:8:5: error: reference to 'visit' is ambiguous
8 | visit[node]=col;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:10:21: error: reference to 'visit' is ambiguous
10 | if(go!=p && visit[go]==0)
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp: In function 'int main()':
menesinis_bilietas.cpp:36:12: error: reference to 'visit' is ambiguous
36 | if(visit[i]==0)dfs(i,0,comp+1),
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:47:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<char, std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for(int i=0;i<edges.size();i++)
| ~^~~~~~~~~~~~~
menesinis_bilietas.cpp:49:16: error: reference to 'visit' is ambiguous
49 | g2[visit[edges[i].second.first]].push_back(visit[edges[i].second.second]),g2[visit[edges[i].second.second]].push_back(visit[edges[i].second.first]);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:49:56: error: reference to 'visit' is ambiguous
49 | g2[visit[edges[i].second.first]].push_back(visit[edges[i].second.second]),g2[visit[edges[i].second.second]].push_back(visit[edges[i].second.first]);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:49:90: error: reference to 'visit' is ambiguous
49 | g2[visit[edges[i].second.first]].push_back(visit[edges[i].second.second]),g2[visit[edges[i].second.second]].push_back(visit[edges[i].second.first]);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:49:131: error: reference to 'visit' is ambiguous
49 | g2[visit[edges[i].second.first]].push_back(visit[edges[i].second.second]),g2[visit[edges[i].second.second]].push_back(visit[edges[i].second.first]);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:53:23: error: reference to 'visit' is ambiguous
53 | for(int go:g2[visit[i]])
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:55:16: error: reference to 'visit' is ambiguous
55 | if(visit[i]!=go && selected[go]==0)
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~
menesinis_bilietas.cpp:63:23: error: reference to 'visit' is ambiguous
63 | for(int go:g2[visit[i]])
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from menesinis_bilietas.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)
| ^~~~~
menesinis_bilietas.cpp:5:5: note: 'int visit [500001]'
5 | int visit[500001];
| ^~~~~