Problem | supertrees |
---|---|
User | Potato3218 |
Submission Time | 2023-01-28 11:49:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
supertrees.cpp:5:8: error: ‘N’ was not declared in this scope
5 | int p[N], ssize[N];
| ^
supertrees.cpp:5:18: error: ‘N’ was not declared in this scope
5 | int p[N], ssize[N];
| ^
supertrees.cpp: In member function ‘int UFDS::find_set(int)’:
supertrees.cpp:7:6: error: ‘p’ was not declared in this scope
7 | if(p[x] == x) return x;
| ^
supertrees.cpp:8:3: error: ‘p’ was not declared in this scope
8 | p[x] = find_set(p[x]);
| ^
supertrees.cpp: In member function ‘void UFDS::merge_set(int, int)’:
supertrees.cpp:17:3: error: ‘p’ was not declared in this scope
17 | p[m] = k;
| ^
supertrees.cpp:18:3: error: ‘ssize’ was not declared in this scope
18 | ssize[k] += ssize[m];
| ^~~~~
supertrees.cpp: In member function ‘void UFDS::init()’:
supertrees.cpp:21:14: error: ‘p’ was not declared in this scope
21 | iota(p, p +