0_0_16225073_419.cpp: In function 'void treeh(int, int, int)':
0_0_16225073_419.cpp:16:10: error: 'struct node' has no member named 'l'
tree[h].l=x;tree[h].r=y;
^
0_0_16225073_419.cpp:16:22: error: 'struct node' has no member named 'r'
tree[h].l=x;tree[h].r=y;
^
0_0_16225073_419.cpp:20:24: error: return-statement with a value, in function returning 'void' [-fpermissive]
return tree[h].s;
^
0_0_16225073_419.cpp:22:27: error: void value not ignored as it ought to be
int x1=treeh(h*2,x,mid);
^
0_0_16225073_419.cpp:23:31: error: void value not ignored as it ought to be
int x2=treeh(h*2+1,mid+1,y);
^
0_0_16225073_419.cpp:25:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
return tree[h].s;
^
0_0_16225073_419.cpp: In function 'int dfs(int, int, int)':
0_0_16225073_419.cpp:28:18: error: 'struct node' has no member named 'l'
if(y<tree[h].l || x>tree[h].r)
^
0_0_16225073_419.cpp:28:33: error: 'struct node' has no member named 'r'
if(y<tree[h].l || x>tree[h].r)
^
0_0_16225073_419.cpp:30:19: error: 'struct node' has no member named 'l'
if(x<=tree[h].l && y>=tree[h].r)
^
0_0_16225073_419.cpp:30:35: error: 'struct node' has no member named 'r'
if(x<=tree[h].l && y>=tree[h].r)
^
0_0_16225073_419.cpp: In function 'int update(int, int)':
0_0_16225073_419.cpp:37:18: error: 'struct node' has no member named 'l'
if(x<tree[h].l || x>tree[h].r)
^
0_0_16225073_419.cpp:37:33: error: 'struct node' has no member named 'r'
if(x<tree[h].l || x>tree[h].r)
^
0_0_16225073_419.cpp:39:16: error: 'struct node' has no member named 'l'
if(tree[h].l==tree[h].r){
^
0_0_16225073_419.cpp:39:27: error: 'struct node' has no member named 'r'
if(tree[h].l==tree[h].r){
^
0_0_16225073_419.cpp:40:29: error: 'struct node' has no member named 'l'
tree[h].s=a[tree[h].l];
^
|