0_0_33287236_26422.cpp: In function 'void updata()':
0_0_33287236_26422.cpp:14:10: error: 'root' was not declared in this scope
tree[root].w = max(tree[root<<1].w,tree[root<<1|1].w);
^
0_0_33287236_26422.cpp: In function 'void query(int, int)':
0_0_33287236_26422.cpp:49:16: error: too many arguments to function 'void updata()'
updata(root);//ÏòÉÏά»¤
^
0_0_33287236_26422.cpp:12:6: note: declared here
void updata()
^
|