Problem | subgraphs |
---|---|
User | AndyBoiiii725 |
Submission Time | 2022-12-27 16:41:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp:40:3: error: expected ‘}’ at end of input
40 | }
| ^
subgraphs.cpp:5:17: note: to match this ‘{’
5 | class UnionFind {
| ^
subgraphs.cpp: In constructor ‘UnionFind::UnionFind(int)’:
subgraphs.cpp:9:5: error: ‘parents_’ was not declared in this scope
9 | parents_.resize(N);
| ^~~~~~~~
subgraphs.cpp:14:5: error: ‘sizes_’ was not declared in this scope; did you mean ‘size_t’?
14 | sizes_.resize(N, 1);
| ^~~~~~
| size_t
subgraphs.cpp: In member function ‘int UnionFind::Find(int)’:
subgraphs.cpp:19:9: error: ‘parents_’ was not declared in this scope
19 | if (parents_[x] != x) {
| ^~~~~~~~
subgraphs.cpp:22:12: error: ‘parents_’ was not declared in this scope
22 | return parents_[x];
| ^~~~~~~~
subgraphs.cpp: In member function ‘void UnionFind::Union(int, int)’:
subgraphs.cpp:33:9: error