0_0_13761048_17722.cpp: In function 'void maketree(int, int, int)':
0_0_13761048_17722.cpp:21:48: error: 'MAX' was not declared in this scope
tree[i].max=MAX(tree[2*i].max,tree[2*i+1].max);
^
0_0_13761048_17722.cpp: In function 'void update(int, int, int)':
0_0_13761048_17722.cpp:32:47: error: 'MAX' was not declared in this scope
tree[i].max=MAX(tree[2*i].max,tree[2*i+1].max);
^
0_0_13761048_17722.cpp: In function 'int query(int, int, int)':
0_0_13761048_17722.cpp:40:59: error: 'MAX' was not declared in this scope
if(A<=(tree[i].a+tree[i].b)/2) max=MAX(max,query(2*i,A,B));
^
0_0_13761048_17722.cpp:41:63: error: 'MAX' was not declared in this scope
if(B>=(tree[i].a+tree[i].b)/2+1) max=MAX(max,query(2*i+1,A,B));
^
|