0_0_29894967_14716.cpp: In function 'void build(int, int, int&)':
0_0_29894967_14716.cpp:22:23: error: invalid initialization of reference of type 'int&' from expression of type 'short int'
build(l,m,t[now].l);
^
0_0_29894967_14716.cpp:17:6: note: in passing argument 3 of 'void build(int, int, int&)'
void build(int l,int r,int &now)
^
0_0_29894967_14716.cpp:23:25: error: invalid initialization of reference of type 'int&' from expression of type 'short int'
build(m+1,r,t[now].r);
^
0_0_29894967_14716.cpp:17:6: note: in passing argument 3 of 'void build(int, int, int&)'
void build(int l,int r,int &now)
^
0_0_29894967_14716.cpp: In function 'void update(int, int, int, int&, int)':
0_0_29894967_14716.cpp:31:62: error: invalid initialization of reference of type 'int&' from expression of type 'short int'
if(x<=m) t[now].r=t[pre].r,update(l,m,x,t[now].l,t[pre].l);
^
0_0_29894967_14716.cpp:25:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
void update(int l,int r,int x,int &now,int pre)
^
0_0_29894967_14716.cpp:32:60: error: invalid initialization of reference of type 'int&' from expression of type 'short int'
else t[now].l=t[pre].l,update(m+1,r,x,t[now].r,t[pre].r);
^
0_0_29894967_14716.cpp:25:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
void update(int l,int r,int x,int &now,int pre)
^
|