supertrees.cpp: In function 'int get_parent(int)':
supertrees.cpp:13:13: error: 'd' was not declared in this scope
13 | if(v == d[v])
| ^
supertrees.cpp:15:12: error: 'd' was not declared in this scope
15 | return d[v] = get_parent(d[v]);
| ^
supertrees.cpp: In function 'void add(int, int)':
supertrees.cpp:21:9: error: 'd' was not declared in this scope
21 | d[f] = d[s];
| ^
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:30:9: error: 'd' was not declared in this scope
30 | d[i] = i;
| ^
supertrees.cpp:50:17: error: 'j' was not declared in this scope
50 | if(p[i][j]){
| ^
supertrees.cpp:28:6: warning: unused variable 'fault' [-Wunused-variable]
28 | int fault = 0;
| ^~~~~