Problem lis
User Xiaoyang
Submission Time 2023-11-23 21:07:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp:28:7: error: ‘maxn’ was not declared in this scope
28 | ll lc[maxn],rc[maxn];
| ^~~~
lis.cpp:28:16: error: ‘maxn’ was not declared in this scope
28 | ll lc[maxn],rc[maxn];
| ^~~~
lis.cpp: In function ‘void pushup(ll)’:
lis.cpp:31:19: error: ‘lc’ was not declared in this scope; did you mean ‘c’?
31 | tree[c]=max(tree[lc[c]],tree[rc[c]]);
| ^~
| c
lis.cpp:31:31: error: ‘rc’ was not declared in this scope; did you mean ‘c’?
31 | tree[c]=max(tree[lc[c]],tree[rc[c]]);
| ^~
| c
lis.cpp: In function ‘void update(ll&, ll, ll, ll, ll)’:
lis.cpp:41:21: error: ‘lc’ was not declared in this scope; did you mean ‘c’?
41 | if(pos<=mid)update(lc[c],cl,mid,pos,val);
| ^~
| c
lis.cpp:42:14: error: ‘rc’ was not decl