0_0_38852520_14322.cpp:4:17: error: expected ']' before ';' token
4 | #define N 200010;
| ^
0_0_38852520_14322.cpp:5:7: note: in expansion of macro 'N'
5 | int a[N];
| ^
0_0_38852520_14322.cpp:5:8: error: expected unqualified-id before ']' token
5 | int a[N];
| ^
0_0_38852520_14322.cpp:4:17: error: expected ']' before ';' token
4 | #define N 200010;
| ^
0_0_38852520_14322.cpp:10:11: note: in expansion of macro 'N'
10 | node tree[N<<2];
| ^
0_0_38852520_14322.cpp:10:12: error: expected unqualified-id before '<<' token
10 | node tree[N<<2];
| ^~
0_0_38852520_14322.cpp: In function 'void creat(int, int, int)':
0_0_38852520_14322.cpp:13:9: error: 'tree' was not declared in this scope; did you mean 'free'?
13 | tree[i].left=l,tree[i].right=r;
| ^~~~
| free
0_0_38852520_14322.cpp:15:27: error: 'a' was not declared in this scope
15 | tree[i].w=a[l];
| ^
0_0_38852520_14322.cpp: In function 'int checkhighest(int, int, int)':
0_0_38852520_14322.cpp:25:15: error: 'tree' was not declared in this scope; did you mean 'free'?
25 | if(l<=tree[i].left&&r>=tree[i].right) return tree[i].w;
| ^~~~
| free
0_0_38852520_14322.cpp:26:18: error: 'tree' was not declared in this scope; did you mean 'free'?
26 | int mid=(tree[i].left+tree[i].right)>>1;
| ^~~~
| free
0_0_38852520_14322.cpp: In function 'void updata(int, int, int)':
0_0_38852520_14322.cpp:34:12: error: 'tree' was not declared in this scope; did you mean 'free'?
34 | if(tree[i].left==tree[i].right){
| ^~~~
| free
0_0_38852520_14322.cpp:38:18: error: 'tree' was not declared in this scope; did you mean 'free'?
38 | int mid=(tree[i].left+tree[i].right)>>1;
| ^~~~
| free
0_0_38852520_14322.cpp: In function 'int main()':
0_0_38852520_14322.cpp:47:44: error: 'a' was not declared in this scope
47 | for(int i=1;i<=n;i++) cin>>a[i];
| ^
0_0_38852520_14322.cpp:56:42: error: 'a' was not declared in this scope
56 | case 'U':a[x]=y,updata(1,x,y);break;
| ^
|