| Problem | subgraphs |
|---|---|
| User | ljx |
| Submission Time | 2026-11-23 20:15:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
subgraphs.cpp:43:1: error: expected ‘}’ at end of input
43 | }
| ^
subgraphs.cpp:7:12: note: to match this ‘{’
7 | struct DSU {
| ^
subgraphs.cpp: In member function ‘int DSU::find(int)’:
subgraphs.cpp:17:30: error: a function-definition is not allowed here before ‘{’ token
17 | bool unite(int a, int b) {
| ^
subgraphs.cpp: In member function ‘int DSU::main()’:
subgraphs.cpp:38:13: error: ‘struct DSU’ has no member named ‘unite’
38 | dsu.unite(a, b);
| ^~~~~
subgraphs.cpp: At global scope:
subgraphs.cpp:43:1: error: expected unqualified-id at end of input
43 | }
| ^