supertrees.cpp: In function 'bool dfs(int, std::vector<std::vector<int> >, std::vector<std::vector<int> >)':
supertrees.cpp:9:11: error: 'v' was not declared in this scope
9 | int n=v.size();
| ^
supertrees.cpp:10:9: error: 'j' was not declared in this scope
10 | vis[j]=true;
| ^
supertrees.cpp:33:21: error: return-statement with no value, in function returning 'bool' [-fpermissive]
33 | if(ok.size()==2)return;
| ^~~~~~
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:41:11: error: 'v' was not declared in this scope
41 | int n=v.size();
| ^
supertrees.cpp: In function 'bool dfs(int, std::vector<std::vector<int> >, std::vector<std::vector<int> >)':
supertrees.cpp:38:1: warning: control reaches end of non-void function [-Wreturn-type]
38 | }
| ^