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