0_0_17024977_3802.cpp: In function 'void update(int, int, int, int, int)':
0_0_17024977_3802.cpp:11:1: error: 'maxv' was not declared in this scope
maxv[o]=v;
^
0_0_17024977_3802.cpp:13:1: error: 'sum' was not declared in this scope
sum[o]=v;
^
0_0_17024977_3802.cpp:29:1: error: 'maxv' was not declared in this scope
maxv[o]=max(maxv[o*2],maxv[o*2+1]);
^
0_0_17024977_3802.cpp:29:34: error: 'max' was not declared in this scope
maxv[o]=max(maxv[o*2],maxv[o*2+1]);
^
0_0_17024977_3802.cpp:31:1: error: 'sum' was not declared in this scope
sum[o]=sum[o*2]+sum[o*2+1];
^
0_0_17024977_3802.cpp: In function 'int query_sum(int, int, int, int, int)':
0_0_17024977_3802.cpp:45:8: error: 'sum' was not declared in this scope
return sum[o];
^
0_0_17024977_3802.cpp: In function 'int query_max(int, int, int, int, int)':
0_0_17024977_3802.cpp:65:8: error: 'maxv' was not declared in this scope
return maxv[o];
^
0_0_17024977_3802.cpp:69:40: error: 'max' was not declared in this scope
return max(ans,query_max(ql,qr,o*2,l,m));
^
0_0_17024977_3802.cpp:73:44: error: 'max' was not declared in this scope
return max(ans,query_max(ql,qr,o*2+1,m+1,r));
^
|