0_0_38695613_31018.cpp: In function 'void function1(long long int, long long int)':
0_0_38695613_31018.cpp:5:16: error: invalid types 'Tree [200005][long long int [3000]]' for array subscript
5 | #define GL tree[root].left
| ^
0_0_38695613_31018.cpp:125:5: note: in expansion of macro 'GL'
125 | GL = GR = 0;
| ^~
0_0_38695613_31018.cpp:6:16: error: invalid types 'Tree [200005][long long int [3000]]' for array subscript
6 | #define GR tree[root].right
| ^
0_0_38695613_31018.cpp:125:10: note: in expansion of macro 'GR'
125 | GL = GR = 0;
| ^~
0_0_38695613_31018.cpp:127:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
127 | if (p[Root].id >= left && p[Root].id <= right) {
| ~~~~~~~~~~~^~~~~~~
0_0_38695613_31018.cpp:127:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
127 | if (p[Root].id >= left && p[Root].id <= right) {
| ~~~~~~~~~~~^~~~~~~~
0_0_38695613_31018.cpp:141:25: error: invalid types 'Node [200005][long long int [3000]]' for array subscript
141 | q[0][len[1]] = p[root];
| ^
0_0_38695613_31018.cpp:143:11: error: invalid types 'Node [200005][long long int [3000]]' for array subscript
143 | tree[p[root].id].sum = tree[p[root].id].num;
| ^
0_0_38695613_31018.cpp:143:34: error: invalid types 'Node [200005][long long int [3000]]' for array subscript
143 | tree[p[root].id].sum = tree[p[root].id].num;
| ^
|