supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:36:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int k=0;k<comp.size();k++){
| ~^~~~~~~~~~~~
supertrees.cpp:42:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | if (mx > 0 or cnt != comp[k].size())
| ~~~~^~~~~~~~~~~~~~~~~
supertrees.cpp:54:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | for (int j=1;j<v.size();j++)
| ~^~~~~~~~~
supertrees.cpp:63:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int k=0;k<comp.size();k++){
| ~^~~~~~~~~~~~
supertrees.cpp:69:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | if (mx > 0 or cnt != comp[k].size())
| ~~~~^~~~~~~~~~~~~~~~~
supertrees.cpp:81:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for (int j=1;j<v.size();j++)
| ~^~~~~~~~~
supertrees.cpp:95:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
95 | for (int k=0;k<comp.size();k++){
| ~^~~~~~~~~~~~
supertrees.cpp:101:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
101 | if (cnt == comp[k].size()){
| ~~~~^~~~~~~~~~~~~~~~~
supertrees.cpp:94:8: warning: variable 'mx' set but not used [-Wunused-but-set-variable]
94 | int mx = 0, ind = -1;
| ^~
supertrees.cpp:111:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | for (int i=0;i<comp.size();i++)
| ~^~~~~~~~~~~~
supertrees.cpp:126:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
126 | for (int j=1;j<v.size();j++)
| ~^~~~~~~~~
supertrees.cpp:142:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
142 | for (int k=0;k<comp.size();k++){
| ~^~~~~~~~~~~~
supertrees.cpp:148:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
148 | if (cnt == comp[k].size()){
| ~~~~^~~~~~~~~~~~~~~~~
supertrees.cpp:141:8: warning: variable 'mx' set but not used [-Wunused-but-set-variable]
141 | int mx = 0, ind = -1;
| ^~
supertrees.cpp:160:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
160 | for (int j=1;j<v.size();j++)
| ~^~~~~~~~~
supertrees.cpp:13:47: warning: control reaches end of non-void function [-Wreturn-type]
13 | vector<vector<int>> ans(n, vector<int> (n, 0)), comp, comp2;
| ^