Problem | hld |
---|---|
User | popperoni |
Submission Time | 2024-12-22 21:43:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hld.cpp: In function ‘int main()’:
hld.cpp:213:24: error: ‘lca’ was not declared in this scope
213 | if(lca(it, curr_root) == it or curr_root == it) continue;
| ^~~
hld.cpp:229:28: error: ‘r’ was not declared in this scope
229 | ll th=kpar(r,abs(depth[r]-depth[b])-1);
| ^
hld.cpp:229:49: error: ‘b’ was not declared in this scope
229 | ll th=kpar(r,abs(depth[r]-depth[b])-1);
| ^
hld.cpp:230:52: error: ‘end1’ was not declared in this scope
230 | ll nnn=cout<<root->qry(1,n)-(root->qry(pre[th],end1[th]))<<endl;
| ^~~~