0_0_39186795_16728.cpp:6:1: error: 'll' does not name a type
6 | ll sum[N];
| ^~
0_0_39186795_16728.cpp: In function 'void build(int, int, int)':
0_0_39186795_16728.cpp:19:11: error: 'lson' was not declared in this scope
19 | build(lson);
| ^~~~
0_0_39186795_16728.cpp:20:11: error: 'rson' was not declared in this scope
20 | build(rson);
| ^~~~
0_0_39186795_16728.cpp: In function 'int query(int, int, int, int, int)':
0_0_39186795_16728.cpp:29:37: error: 'lson' was not declared in this scope
29 | if(L<=m) ret=max( ret,query(L,R,lson) );
| ^~~~
0_0_39186795_16728.cpp:30:36: error: 'rson' was not declared in this scope
30 | if(R>m) ret=max( ret,query(L,R,rson) );
| ^~~~
0_0_39186795_16728.cpp: In function 'int main()':
0_0_39186795_16728.cpp:39:9: error: 'sum' was not declared in this scope
39 | sum[0]=0;
| ^~~
0_0_39186795_16728.cpp:40:13: error: 'i' was not declared in this scope
40 | rep(i,1,n){
| ^
0_0_39186795_16728.cpp:40:9: error: 'rep' was not declared in this scope
40 | rep(i,1,n){
| ^~~
0_0_39186795_16728.cpp:44:9: error: 'mem' was not declared in this scope
44 | mem(lastPos,0);
| ^~~
0_0_39186795_16728.cpp:54:13: error: 'll' was not declared in this scope
54 | ll temp=(ll)1*(R-L+2)*(R-L+1)/2;
| ^~
0_0_39186795_16728.cpp:55:37: error: 'temp' was not declared in this scope; did you mean 'tm'?
55 | if( ((sum[R]-sum[L-1])==temp)&&query(L,R,1,n,1)<L ){
| ^~~~
| tm
|