0_0_24536605_9551.cpp: In function 'short int query(int, int, int)':
0_0_24536605_9551.cpp:49:6: error: 'tree' was not declared in this scope
if(tree[root].left>right||tree[root].right<left)
^
0_0_24536605_9551.cpp:51:8: error: 'tree' was not declared in this scope
if(tree[root].left>=left&&tree[root].right<=right)
^
0_0_24536605_9551.cpp:55:18: error: 'tree' was not declared in this scope
int a,b,mid=(tree[root].left+tree[root].right)>>1;
^
0_0_24536605_9551.cpp:56:29: error: 'cal' was not declared in this scope
a=cal(root<<1,left,right);
^
|