Main.cpp: In constructor 'segTree::segTree(segTree*, segTree*)':
Main.cpp:28:17: error: 'Connected' was not declared in this scope
28 | level = Connected(lc->level, lc->leader, rc->leader);
| ^~~~~~~~~
Main.cpp: In function 'int query(segTree*, int)':
Main.cpp:42:25: error: 'Connected' was not declared in this scope
42 | if(st->lc->level == Connected(st->lc->level, nd, st->lc->leader)) return query(st->lc, nd);
| ^~~~~~~~~
Main.cpp: In function 'void ToyDesign(int, int)':
Main.cpp:50:17: error: 'Connected' was not declared in this scope
50 | int b = Connected(lastLevel, 1, i);
| ^~~~~~~~~
Main.cpp:68:5: error: 'DescribeDesign' was not declared in this scope
68 | DescribeDesign(ans);
| ^~~~~~~~~~~~~~
Main.cpp: In function 'int query(segTree*, int)':
Main.cpp:44:1: warning: control reaches end of non-void function [-Wreturn-type]
44 | }
| ^