supertrees.cpp: In function 'void connect(int, int)':
supertrees.cpp:24:5: error: 'add_edge' was not declared in this scope
24 | add_edge(x,y);
| ^~~~~~~~
supertrees.cpp: In function 'void dfs(int)':
supertrees.cpp:35:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int i=0;i<v[x].size();i++){
| ~^~~~~~~~~~~~
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:62:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for(int f=0;f<cycle[k].size();f++){
| ~^~~~~~~~~~~~~~~~
supertrees.cpp:63:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for(int d=f+1;d<cycle[k].size();d++){
| ~^~~~~~~~~~~~~~~~
supertrees.cpp:69:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for(int f=0;f<cycle[k].size()-1;f++){
| ~^~~~~~~~~~~~~~~~~~