0_0_38904635_19697.cpp:40:12: error: 'MAXN' was not declared in this scope
40 | int ch[MAXN * 70][2], sum[MAXN * 70];
| ^~~~
0_0_38904635_19697.cpp:40:31: error: 'MAXN' was not declared in this scope
40 | int ch[MAXN * 70][2], sum[MAXN * 70];
| ^~~~
0_0_38904635_19697.cpp: In member function 'void HJT::push_up(long long int)':
0_0_38904635_19697.cpp:46:9: error: 'sum' was not declared in this scope
46 | sum[rt] = sum[ch[rt][0]] + sum[ch[rt][1]];
| ^~~
0_0_38904635_19697.cpp:46:23: error: 'ch' was not declared in this scope
46 | sum[rt] = sum[ch[rt][0]] + sum[ch[rt][1]];
| ^~
0_0_38904635_19697.cpp: In member function 'long long int HJT::update(long long int, long long int, long long int, long long int, long long int)':
0_0_38904635_19697.cpp:51:9: error: 'ch' was not declared in this scope
51 | ch[nrt][0] = ch[nrt][1] = sum[nrt] = 0;
| ^~
0_0_38904635_19697.cpp:51:35: error: 'sum' was not declared in this scope
51 | ch[nrt][0] = ch[nrt][1] = sum[nrt] = 0;
| ^~~
0_0_38904635_19697.cpp: In member function 'long long int HJT::query(long long int, long long int, long long int, long long int, long long int)':
0_0_38904635_19697.cpp:69:29: error: 'sum' was not declared in this scope
69 | if (R == en) return sum[rrt] - sum[lrt];
| ^~~
0_0_38904635_19697.cpp:72:26: error: 'ch' was not declared in this scope
72 | return query(ch[lrt][0], ch[rrt][0], R, be, mid);
| ^~
0_0_38904635_19697.cpp:74:20: error: 'sum' was not declared in this scope
74 | return sum[ch[rrt][0]] - sum[ch[lrt][0]] + query(ch[lrt][1], ch[rrt][1], R, mid + 1, en);
| ^~~
0_0_38904635_19697.cpp:74:24: error: 'ch' was not declared in this scope
74 | return sum[ch[rrt][0]] - sum[ch[lrt][0]] + query(ch[lrt][1], ch[rrt][1], R, mid + 1, en);
| ^~
0_0_38904635_19697.cpp: In function 'void solve()':
0_0_38904635_19697.cpp:109:5: error: 'root' was not declared in this scope
109 | root[0] = 0;
| ^~~~
|