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