0_0_22904049_4224.c:10:1: error: unknown type name 'node'
node tree[MAXN*3];
^
0_0_22904049_4224.c: In function 'Build':
0_0_22904049_4224.c:14:12: error: request for member 'l' in something not a structure or union
tree[root].l = start;
^
0_0_22904049_4224.c:15:12: error: request for member 'r' in something not a structure or union
tree[root].r = end;
^
0_0_22904049_4224.c:16:12: error: request for member 'paint' in something not a structure or union
tree[root].paint = 0;
^
0_0_22904049_4224.c: In function 'update':
0_0_22904049_4224.c:28:15: error: request for member 'l' in something not a structure or union
if(tree[root].l == X && tree[root].r == Y) {
^
0_0_22904049_4224.c:28:36: error: request for member 'r' in something not a structure or union
if(tree[root].l == X && tree[root].r == Y) {
^
0_0_22904049_4224.c:29:13: error: request for member 'paint' in something not a structure or union
tree[root].paint++;
^
0_0_22904049_4224.c:32:22: error: request for member 'l' in something not a structure or union
LL mid = (tree[root].l+tree[root].r) >> 1;
^
0_0_22904049_4224.c:32:35: error: request for member 'r' in something not a structure or union
LL mid = (tree[root].l+tree[root].r) >> 1;
^
0_0_22904049_4224.c: In function 'PaintQ':
0_0_22904049_4224.c:44:21: error: request for member 'l' in something not a structure or union
for(LL i=tree[root].l; i <= tree[root].r; i++)
^
0_0_22904049_4224.c:44:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(LL i=tree[root].l; i <= tree[root].r; i++)
^
0_0_22904049_4224.c:44:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_22904049_4224.c:44:40: error: request for member 'r' in something not a structure or union
for(LL i=tree[root].l; i <= tree[root].r; i++)
^
0_0_22904049_4224.c:45:23: error: request for member 'paint' in something not a structure or union
arr[i] += tree[root].paint;
^
0_0_22904049_4224.c:47:15: error: request for member 'l' in something not a structure or union
if(tree[root].l == tree[root].r) {
^
0_0_22904049_4224.c:47:31: error: request for member 'r' in something not a structure or union
if(tree[root].l == tree[root].r) {
^
0_0_22904049_4224.c: In function 'main':
0_0_22904049_4224.c:63:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(LL i=1; i <= N; i++) {
^
0_0_22904049_4224.c:70:10: error: redefinition of 'i'
for(LL i=1; i < N; i++) {
^
0_0_22904049_4224.c:63:10: note: previous definition of 'i' was here
for(LL i=1; i <= N; i++) {
^
0_0_22904049_4224.c:70:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(LL i=1; i < N; i++) {
^
|