0_0_23942706_877.cpp: In function 'node* create_tree(int, int, int, int, bool)':
0_0_23942706_877.cpp:25:9: error: 'struct node' has no member named 'left'
root->left=x1;
^
0_0_23942706_877.cpp:26:7: error: 'struct node' has no member named 'right'
root->right=y1;
^
0_0_23942706_877.cpp:27:9: error: 'struct node' has no member named 'ytree'
root->ytree=create_tree(x1,y1,x2,y2, false);
^
0_0_23942706_877.cpp:31:10: error: 'struct node' has no member named 'pleft'
root->pleft = create_tree(x1, mid, x2, y2, true);
^
0_0_23942706_877.cpp:32:10: error: 'struct node' has no member named 'pright'
root->pright = create_tree(mid+1, y1, x2, y2, true);
^
0_0_23942706_877.cpp:37:9: error: 'struct node' has no member named 'left'
root->left = x2;
^
0_0_23942706_877.cpp:38:9: error: 'struct node' has no member named 'right'
root->right = y2;
^
0_0_23942706_877.cpp:42:10: error: 'struct node' has no member named 'pleft'
root->pleft = create_tree(x1, y1, x2, mid, false);
^
0_0_23942706_877.cpp:43:10: error: 'struct node' has no member named 'pright'
root->pright = create_tree(x1, y1, mid+1, y2, false);
^
0_0_23942706_877.cpp: In function 'void update(node*, int, int, int, bool)':
0_0_23942706_877.cpp:51:19: error: 'struct node' has no member named 'left'
int mid = (root->left + root->right)/2;
^
0_0_23942706_877.cpp:51:32: error: 'struct node' has no member named 'right'
int mid = (root->left + root->right)/2;
^
0_0_23942706_877.cpp:54:16: error: 'struct node' has no member named 'ytree'
update(root->ytree, d1, d2, v, false);
^
0_0_23942706_877.cpp:55:12: error: 'struct node' has no member named 'left'
if(root->left < root->right)
^
0_0_23942706_877.cpp:55:25: error: 'struct node' has no member named 'right'
if(root->left < root->right)
^
0_0_23942706_877.cpp:58:18: error: 'struct node' has no member named 'pleft'
update(root->pleft, d1, d2, v, true);
^
0_0_23942706_877.cpp:60:18: error: 'struct node' has no member named 'pright'
update(root->pright, d1, d2, v, true);
^
0_0_23942706_877.cpp:65:12: error: 'struct node' has no member named 'left'
if(root->left == root->right)
^
0_0_23942706_877.cpp:65:26: error: 'struct node' has no member named 'right'
if(root->left == root->right)
^
0_0_23942706_877.cpp:70:18: error: 'struct node' has no member named 'pleft'
update(root->pleft, d1, d2, v, false);
^
0_0_23942706_877.cpp:72:18: error: 'struct node' has no member named 'pright'
update(root->pright, d1, d2, v, false);
^
0_0_23942706_877.cpp:73:23: error: 'struct node' has no member named 'pleft'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942706_877.cpp:4:19: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942706_877.cpp:73:39: error: 'struct node' has no member named 'pright'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942706_877.cpp:4:23: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942706_877.cpp:73:23: error: 'struct node' has no member named 'pleft'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942706_877.cpp:4:27: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942706_877.cpp:73:39: error: 'struct node' has no member named 'pright'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942706_877.cpp:4:31: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942706_877.cpp: In function 'int query(node*, int, int, int, int, bool)':
0_0_23942706_877.cpp:81:19: error: 'struct node' has no member named 'left'
int mid = (root->left + root->right)/2;
^
0_0_23942706_877.cpp:81:32: error: 'struct node' has no member named 'right'
int mid = (root->left + root->right)/2;
^
0_0_23942706_877.cpp:84:12: error: 'struct node' has no member named 'left'
if(root->left == x1 && root->right == y1)
^
0_0_23942706_877.cpp:84:32: error: 'struct node' has no member named 'right'
if(root->left == x1 && root->right == y1)
^
0_0_23942706_877.cpp:85:23: error: 'struct node' has no member named 'ytree'
return query(root->ytree, x1, y1, x2, y2, false);
^
0_0_23942706_877.cpp:88:38: error: 'struct node' has no member named 'pleft'
if(y1 <= mid) {return query(root->pleft, x1, y1, x2, y2, true);}
^
0_0_23942706_877.cpp:89:37: error: 'struct node' has no member named 'pright'
if(x1 > mid) {return query(root->pright, x1, y1, x2, y2, true);}
^
0_0_23942706_877.cpp:90:22: error: 'struct node' has no member named 'pleft'
lmq = query(root->pleft, x1, mid, x2, y2, true);
^
0_0_23942706_877.cpp:91:22: error: 'struct node' has no member named 'pright'
rmq = query(root->pright, mid+1, y1, x2, y2, true);
^
0_0_23942706_877.cpp:96:12: error: 'struct node' has no member named 'left'
if(root->left == x2 && root->right == y2)
^
0_0_23942706_877.cpp:96:32: error: 'struct node' has no member named 'right'
if(root->left == x2 && root->right == y2)
^
0_0_23942706_877.cpp:101:24: error: 'struct node' has no member named 'pleft'
return query(root->pleft, x1, y1, x2, y2, false);
^
0_0_23942706_877.cpp:103:24: error: 'struct node' has no member named 'pright'
return query(root->pright, x1, y1, x2, y2, false);
^
0_0_23942706_877.cpp:104:22: error: 'struct node' has no member named 'pleft'
lmq = query(root->pleft, x1, y1, x2, mid, false);
^
0_0_23942706_877.cpp:105:22: error: 'struct node' has no member named 'pright'
rmq = query(root->pright, x1, y1, mid+1, y2, false);
^
|