supertrees.cpp:1:9: error: 'mxN' was not declared in this scope
1 | int dsu[mxN];
| ^~~
supertrees.cpp: In function 'int find(int)':
supertrees.cpp:2:26: error: 'dsu' was not declared in this scope
2 | int find(int x) { return dsu[x] == x ? x : dsu[x] = find(dsu[x]); }
| ^~~
supertrees.cpp: In function 'void merge(int, int)':
supertrees.cpp:3:28: error: 'dsu' was not declared in this scope
3 | void merge(int a, int b) { dsu[find(b)] = find(a); }
| ^~~
supertrees.cpp: At global scope:
supertrees.cpp:4:20: error: 'vector' is not a member of 'std'
4 | int construct(std::vector<std::vector<int>> p)
| ^~~~~~
supertrees.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
+++ |+#include <vector>
1 | int dsu[mxN];
supertrees.cpp:4:32: error: 'vector' is not a member of 'std'
4 | int construct(std::vector<std::vector<int>> p)
| ^~~~~~
supertrees.cpp:4:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
supertrees.cpp:4:39: error: expected primary-expression before 'int'
4 | int construct(std::vector<std::vector<int>> p)
| ^~~