0_0_21955127_5951.cpp:15:1: error: 'NODE' does not name a type
NODE tree[maxn * 4];
^
0_0_21955127_5951.cpp: In function 'int build(int, int, int)':
0_0_21955127_5951.cpp:18:2: error: 'tree' was not declared in this scope
tree[root].left = left;
^
0_0_21955127_5951.cpp: In function 'int find(int, int, int)':
0_0_21955127_5951.cpp:29:5: error: 'tree' was not declared in this scope
if(tree[root].left > right || tree[root].right < left)
^
0_0_21955127_5951.cpp:31:13: error: 'tree' was not declared in this scope
if(left <= tree[root].left && tree[root].right <= right)
^
0_0_21955127_5951.cpp: In function 'int updata(int, int, int)':
0_0_21955127_5951.cpp:39:11: error: 'tree' was not declared in this scope
if(pos < tree[root].left || tree[root].right < pos)
^
0_0_21955127_5951.cpp:41:12: error: 'tree' was not declared in this scope
if(pos == tree[root].left && pos == tree[root].right)
^
0_0_21955127_5951.cpp:45:2: error: 'tree' was not declared in this scope
tree[root].max = max(a, b);
^
|