0_0_30356520_8954.cpp:11:24: error: 'rt' was not declared in this scope
int lsum[maxn<<2],rsum[rt<<2],sum[rt<<2];
^
0_0_30356520_8954.cpp:11:35: error: 'rt' was not declared in this scope
int lsum[maxn<<2],rsum[rt<<2],sum[rt<<2];
^
0_0_30356520_8954.cpp: In function 'void pushUp(int, int)':
0_0_30356520_8954.cpp:14:5: error: 'rsum' was not declared in this scope
rsum[rt]=rsum[rt<<1|1];
^
0_0_30356520_8954.cpp:20:5: error: 'sum' was not declared in this scope
sum[rt]=max(max(rsum[rt],lsum[rt]),max(max(sum[rt<<1],sum[rt<<1|1]),rsum[rt]+lsum[rt<<1|1]));
^
0_0_30356520_8954.cpp: In function 'int build(int, int, int)':
0_0_30356520_8954.cpp:26:18: error: 'rsum' was not declared in this scope
lsum[rt]=rsum[rt]=sum[rt]=1;
^
0_0_30356520_8954.cpp:26:27: error: 'sum' was not declared in this scope
lsum[rt]=rsum[rt]=sum[rt]=1;
^
0_0_30356520_8954.cpp:27:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
return ;
^
0_0_30356520_8954.cpp: In function 'int main()':
0_0_30356520_8954.cpp:45:24: error: 'update' was not declared in this scope
update()
^
|