supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:17:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
17 | for (int i=0; i<n; i++)
| ^~~
supertrees.cpp:21:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
21 | int visited[n]={0};
| ^~~
supertrees.cpp:76:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for (int j=0; j<subcomponents.size(); j++)
| ~^~~~~~~~~~~~~~~~~~~~~
supertrees.cpp:78:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for (int t=0; t<subcomponents[j].size(); t++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~
supertrees.cpp:79:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | for (int k=t+1; k<subcomponents[j].size(); k++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~
supertrees.cpp:83:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for (int t=0; t<subcomponents.size(); t++)
| ~^~~~~~~~~~~~~~~~~~~~~
supertrees.cpp:92:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | for (int j=0; j<subcomponents.size(); j++)
| ~^~~~~~~~~~~~~~~~~~~~~
supertrees.cpp:93:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | for (int t=0; t<subcomponents[j].size()-1; t++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~
supertrees.cpp:109:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
109 | for (int j=0; j<subcomponents.size(); j++)
| ~^~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccSt3zqE.o: in function `build(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)':
grader.cpp:(.text+0x260): multiple definition of `build(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)'; /tmp/cc5sz4fG.o:supertrees.cpp:(.text+0x260): first defined here
/usr/bin/ld: /tmp/ccSt3zqE.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc5sz4fG.o:supertrees.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status