Problem | hld |
---|---|
User | popperoni |
Submission Time | 2024-12-22 21:42:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hld.cpp:163:4: error: redefinition of ‘long long int kpar(long long int, long long int)’
163 | ll kpar(ll x,ll k){
| ^~~~
hld.cpp:155:5: note: ‘long long int kpar(long long int, long long int)’ previously defined here
155 | int kpar(int x, int k){
| ^~~~
hld.cpp: In function ‘int main()’:
hld.cpp:222:24: error: ‘lca’ was not declared in this scope
222 | if(lca(it, curr_root) == it or curr_root == it) continue;
| ^~~
hld.cpp:238:28: error: ‘r’ was not declared in this scope
238 | ll th=kpar(r,abs(depth[r]-depth[b])-1);
| ^
hld.cpp:238:49: error: ‘b’ was not declared in this scope
238 | ll th=kpar(r,abs(depth[r]-depth[b])-1);
| ^
hld.cpp:239:52: error: ‘end1’ was not declared in this scope
239 | ll nnn=cout<<root->qry(1,n)-(root-