Problem doll_noi
User trollSecOps
Submission Time 2024-02-24 10:17:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll_noi.cpp:18:5: error: ‘vector’ does not name a type
18 | vector<int> parent, size;
| ^~~~~~
doll_noi.cpp: In constructor ‘DSU::DSU(int)’:
doll_noi.cpp:21:9: error: ‘parent’ was not declared in this scope
21 | parent.assign(n, -1);
| ^~~~~~
doll_noi.cpp:22:9: error: ‘size’ was not declared in this scope; did you mean ‘std::size’?
22 | size.assign(n, 0);
| ^~~~
| std::size
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x