0_0_23175442_23962.cpp:91:1: error: 'code' does not name a type
code???????
^
0_0_23175442_23962.cpp:106:2: error: 'tree' does not name a type
}tree[4*max];
^
0_0_23175442_23962.cpp: In function 'void build_tree(int, int, int)':
0_0_23175442_23962.cpp:114:5: error: 'tree' was not declared in this scope
tree[p].sum = 0;
^
0_0_23175442_23962.cpp: In function 'void add(int, int, int)':
0_0_23175442_23962.cpp:138:14: error: 'tree' was not declared in this scope
int m = (tree[p].l+tree[p].r)/2;
^
0_0_23175442_23962.cpp: In function 'int query(int, int, int)':
0_0_23175442_23962.cpp:176:14: error: 'tree' was not declared in this scope
int m = (tree[p].l+tree[p].r)/2;
^
0_0_23175442_23962.cpp: In function 'int main()':
0_0_23175442_23962.cpp:198:5: error: redefinition of 'int main()'
int main()
^
0_0_23175442_23962.cpp:51:5: note: 'int main()' previously defined here
int main()
^
|