Problem ghostrule
User Xiaoyang
Submission Time 2023-12-30 14:17:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ghostrule.cpp: In function ‘int main()’:
ghostrule.cpp:105:16: error: ‘pre’ was not declared in this scope
105 | update(1,1,n,pre[tmp],pre[tmp],1);
| ^~~
ghostrule.cpp:113:12: error: ‘u’ was not declared in this scope
113 | while(tp[u]!=tp[v]){
| ^
ghostrule.cpp:113:19: error: ‘v’ was not declared in this scope
113 | while(tp[u]!=tp[v]){
| ^
ghostrule.cpp:118:9: error: ‘u’ was not declared in this scope
118 | if(id[u]>id[v])swap(u,v); //same chain
| ^
ghostrule.cpp:118:15: error: ‘v’ was not declared in this scope
118 | if(id[u]>id[v])swap(u,v); //same chain
| ^
ghostrule.cpp:119:23: error: ‘u’ was not declared in this scope
119 | sum+=query(1,1,n,id[u],id[v]);
| ^
ghostrule.cpp:119:29: error: ‘v’ was not declared in this scope
119 | sum+=query(1,1,n,id[u],id[v]);