Problem supertrees
User kenkunkin
Submission Time 2026-02-05 11:48:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supertrees.cpp:7:1: error: ‘vector’ does not name a type
7 | vector <int> g1[maxn],g2[maxn];
| ^~~~~~
supertrees.cpp:9:1: error: ‘vector’ does not name a type
9 | vector <vector<int> > c;
| ^~~~~~
supertrees.cpp:11:15: error: ‘int construct’ redeclared as different kind of entity
11 | int construct(vector <vector <int> > a)
| ^~~~~~
In file included from supertrees.cpp:1:
supertrees.h:3:5: note: previous declaration ‘int construct(std::vector<std::vector<int> >)’
3 | int construct(std::vector<std::vector<int>> p);
| ^~~~~~~~~
supertrees.cpp:11:15: error: ‘vector’ was not declared in this scope
11 | int construct(vector <vector <int> > a)
| ^~~~~~
supertrees.cpp:11:15: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from supertrees.h:1,