Problem supertrees
User Potato3218
Submission Time 2023-01-28 11:50:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supertrees.cpp: In member function ‘void UFDS::init()’:
supertrees.cpp:22:9: error: ‘iota’ was not declared in this scope
22 | iota(p, p + N, 0);
| ^~~~
supertrees.cpp:23:3: error: ‘fill’ was not declared in this scope; did you mean ‘std::fill’?
23 | fill(ssize, ssize + N, 1);
| ^~~~
| std::fill
In file included from /usr/include/c++/9/vector:68,
from supertrees.h:1,
from supertrees.cpp:1:
/usr/include/c++/9/bits/stl_bvector.h:411:3: note: ‘std::fill’ declared here
411 | fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x)
| ^~~~
supertrees.cpp: At global scope:
supertrees.cpp:27:15: error: ‘int construct’ redeclared as different kind of entity
27 | int construct(vector<vector<int>> p) {
| ^~~~~~
In file included from supertrees.cpp:1:
supertrees.h:3:5: note: previous declaration ‘int constr