supertrees.cpp: In function 'void dfs(ll)':
supertrees.cpp:51:16: error: reference to 'visit' is ambiguous
51 | void dfs(ll v){visit[v] = 1;for(auto x:ad[v]){if(!visit[x]){depth[x] = depth[v] + 1;dfs(x);}}}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp:51:51: error: reference to 'visit' is ambiguous
51 | void dfs(ll v){visit[v] = 1;for(auto x:ad[v]){if(!visit[x]){depth[x] = depth[v] + 1;dfs(x);}}}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp: In function 'void bfs(ll)':
supertrees.cpp:52:16: error: reference to 'visit' is ambiguous
52 | void bfs(ll s){visit[s] = 1;queue<ll>q;q.push(s);while(!q.empty()){ll u = q.front();ps(u);q.pop();for(auto x:adj[u]){if(!visit[x]){visit[x] = 1;q.push(x);}}}}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp:52:122: error: reference to 'visit' is ambiguous
52 | void bfs(ll s){visit[s] = 1;queue<ll>q;q.push(s);while(!q.empty()){ll u = q.front();ps(u);q.pop();for(auto x:adj[u]){if(!visit[x]){visit[x] = 1;q.push(x);}}}}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp:52:132: error: reference to 'visit' is ambiguous
52 | void bfs(ll s){visit[s] = 1;queue<ll>q;q.push(s);while(!q.empty()){ll u = q.front();ps(u);q.pop();for(auto x:adj[u]){if(!visit[x]){visit[x] = 1;q.push(x);}}}}
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp: In function 'void solvi(ll)':
supertrees.cpp:88:5: error: reference to 'visit' is ambiguous
88 | visit[s] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp:91:13: error: reference to 'visit' is ambiguous
91 | if(!visit[x]){
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:141:13: error: reference to 'visit' is ambiguous
141 | visit.assign(n,0);
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp:143:21: error: reference to 'visit' is ambiguous
143 | if(!visit[x]){
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from supertrees.cpp:1:
/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)
| ^~~~~
supertrees.cpp:33:5: note: 'std::vector<int> visit'
33 | vll visit,dist,taken;
| ^~~~~
supertrees.cpp:9:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | #define f(i,a,b) for(ll i = a;i < b;i++)
......
147 | f(j,0,exo.size()-1){
| ~~~~~~~~~~~~~~~~
supertrees.cpp:147:21: note: in expansion of macro 'f'
147 | f(j,0,exo.size()-1){
| ^
supertrees.cpp:9:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | #define f(i,a,b) for(ll i = a;i < b;i++)
......
158 | f(i,0,n2.size()){
| ~~~~~~~~~~~~~
supertrees.cpp:158:17: note: in expansion of macro 'f'
158 | f(i,0,n2.size()){
| ^
supertrees.cpp: In function 'void filesin()':
supertrees.cpp:66:27: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
66 | void filesin(void){freopen("input.out","r",stdin);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
supertrees.cpp: In function 'void filesout()':
supertrees.cpp:67:28: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
67 | void filesout(void){freopen("tracing.out","w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~