0_0_23942698_8635.cpp: In function 'node* new_node()':
0_0_23942698_8635.cpp:18:26: error: 'memset' was not declared in this scope
memset(pt,0,sizeof(node));
^
0_0_23942698_8635.cpp: In function 'node* create_tree(int, int, int, int, bool)':
0_0_23942698_8635.cpp:27:9: error: 'struct node' has no member named 'left'
root->left=x1;
^
0_0_23942698_8635.cpp:28:7: error: 'struct node' has no member named 'right'
root->right=y1;
^
0_0_23942698_8635.cpp:29:9: error: 'struct node' has no member named 'ytree'
root->ytree=create_tree(x1,y1,x2,y2, false);
^
0_0_23942698_8635.cpp:33:10: error: 'struct node' has no member named 'pleft'
root->pleft = create_tree(x1, mid, x2, y2, true);
^
0_0_23942698_8635.cpp:34:10: error: 'struct node' has no member named 'pright'
root->pright = create_tree(mid+1, y1, x2, y2, true);
^
0_0_23942698_8635.cpp:39:9: error: 'struct node' has no member named 'left'
root->left = x2;
^
0_0_23942698_8635.cpp:40:9: error: 'struct node' has no member named 'right'
root->right = y2;
^
0_0_23942698_8635.cpp:44:10: error: 'struct node' has no member named 'pleft'
root->pleft = create_tree(x1, y1, x2, mid, false);
^
0_0_23942698_8635.cpp:45:10: error: 'struct node' has no member named 'pright'
root->pright = create_tree(x1, y1, mid+1, y2, false);
^
0_0_23942698_8635.cpp: In function 'void update(node*, int, int, int, bool)':
0_0_23942698_8635.cpp:53:19: error: 'struct node' has no member named 'left'
int mid = (root->left + root->right)/2;
^
0_0_23942698_8635.cpp:53:32: error: 'struct node' has no member named 'right'
int mid = (root->left + root->right)/2;
^
0_0_23942698_8635.cpp:56:16: error: 'struct node' has no member named 'ytree'
update(root->ytree, d1, d2, v, false);
^
0_0_23942698_8635.cpp:57:12: error: 'struct node' has no member named 'left'
if(root->left < root->right)
^
0_0_23942698_8635.cpp:57:25: error: 'struct node' has no member named 'right'
if(root->left < root->right)
^
0_0_23942698_8635.cpp:60:18: error: 'struct node' has no member named 'pleft'
update(root->pleft, d1, d2, v, true);
^
0_0_23942698_8635.cpp:62:18: error: 'struct node' has no member named 'pright'
update(root->pright, d1, d2, v, true);
^
0_0_23942698_8635.cpp:67:12: error: 'struct node' has no member named 'left'
if(root->left == root->right)
^
0_0_23942698_8635.cpp:67:26: error: 'struct node' has no member named 'right'
if(root->left == root->right)
^
0_0_23942698_8635.cpp:72:18: error: 'struct node' has no member named 'pleft'
update(root->pleft, d1, d2, v, false);
^
0_0_23942698_8635.cpp:74:18: error: 'struct node' has no member named 'pright'
update(root->pright, d1, d2, v, false);
^
0_0_23942698_8635.cpp:75:23: error: 'struct node' has no member named 'pleft'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942698_8635.cpp:6:19: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942698_8635.cpp:75:39: error: 'struct node' has no member named 'pright'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942698_8635.cpp:6:23: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942698_8635.cpp:75:23: error: 'struct node' has no member named 'pleft'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942698_8635.cpp:6:27: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942698_8635.cpp:75:39: error: 'struct node' has no member named 'pright'
root->M = MQ(root->pleft->M, root->pright->M);
^
0_0_23942698_8635.cpp:6:31: note: in definition of macro 'MQ'
#define MQ(x,y) ((x)>(y)?(x):(y))
^
0_0_23942698_8635.cpp: In function 'int query(node*, int, int, int, int, bool)':
0_0_23942698_8635.cpp:83:19: error: 'struct node' has no member named 'left'
int mid = (root->left + root->right)/2;
^
0_0_23942698_8635.cpp:83:32: error: 'struct node' has no member named 'right'
int mid = (root->left + root->right)/2;
^
0_0_23942698_8635.cpp:86:12: error: 'struct node' has no member named 'left'
if(root->left == x1 && root->right == y1)
^
0_0_23942698_8635.cpp:86:32: error: 'struct node' has no member named 'right'
if(root->left == x1 && root->right == y1)
^
0_0_23942698_8635.cpp:87:23: error: 'struct node' has no member named 'ytree'
return query(root->ytree, x1, y1, x2, y2, false);
^
0_0_23942698_8635.cpp:90:38: error: 'struct node' has no member named 'pleft'
if(y1 <= mid) {return query(root->pleft, x1, y1, x2, y2, true);}
^
0_0_23942698_8635.cpp:91:37: error: 'struct node' has no member named 'pright'
if(x1 > mid) {return query(root->pright, x1, y1, x2, y2, true);}
^
0_0_23942698_8635.cpp:92:22: error: 'struct node' has no member named 'pleft'
lmq = query(root->pleft, x1, mid, x2, y2, true);
^
0_0_23942698_8635.cpp:93:22: error: 'struct node' has no member named 'pright'
rmq = query(root->pright, mid+1, y1, x2, y2, true);
^
0_0_23942698_8635.cpp:98:12: error: 'struct node' has no member named 'left'
if(root->left == x2 && root->right == y2)
^
0_0_23942698_8635.cpp:98:32: error: 'struct node' has no member named 'right'
if(root->left == x2 && root->right == y2)
^
0_0_23942698_8635.cpp:103:24: error: 'struct node' has no member named 'pleft'
return query(root->pleft, x1, y1, x2, y2, false);
^
0_0_23942698_8635.cpp:105:24: error: 'struct node' has no member named 'pright'
return query(root->pright, x1, y1, x2, y2, false);
^
0_0_23942698_8635.cpp:106:22: error: 'struct node' has no member named 'pleft'
lmq = query(root->pleft, x1, y1, x2, mid, false);
^
0_0_23942698_8635.cpp:107:22: error: 'struct node' has no member named 'pright'
rmq = query(root->pright, x1, y1, mid+1, y2, false);
^
|