0_0_36263681_4130.cpp: In function 'void build(ll, ll, ll&)':
0_0_36263681_4130.cpp:62:24: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
build(l,mid,t[k].ls);
^
0_0_36263681_4130.cpp:52:13: note: in passing argument 3 of 'void build(ll, ll, ll&)'
inline void build(ll l,ll r,ll&k)
^
0_0_36263681_4130.cpp:63:26: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
build(mid+1,r,t[k].rs);
^
0_0_36263681_4130.cpp:52:13: note: in passing argument 3 of 'void build(ll, ll, ll&)'
inline void build(ll l,ll r,ll&k)
^
0_0_36263681_4130.cpp: In function 'void update(ll&, ll, ll, ll, ll, ll, ll)':
0_0_36263681_4130.cpp:78:53: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
if(nl<=mid)update(t[k].ls,t[lk].ls,nl,nr,l,mid,x);
^
0_0_36263681_4130.cpp:66:13: note: in passing argument 1 of 'void update(ll&, ll, ll, ll, ll, ll, ll)'
inline void update(ll&k,ll lk,ll nl,ll nr,ll l,ll r,ll x)
^
0_0_36263681_4130.cpp:79:54: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
if(nr>mid)update(t[k].rs,t[lk].rs,nl,nr,mid+1,r,x);
^
0_0_36263681_4130.cpp:66:13: note: in passing argument 1 of 'void update(ll&, ll, ll, ll, ll, ll, ll)'
inline void update(ll&k,ll lk,ll nl,ll nr,ll l,ll r,ll x)
^
0_0_36263681_4130.cpp: In function 'int main()':
0_0_36263681_4130.cpp:98:23: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
build(1,n,rt[0]);
^
0_0_36263681_4130.cpp:52:13: note: in passing argument 3 of 'void build(ll, ll, ll&)'
inline void build(ll l,ll r,ll&k)
^
0_0_36263681_4130.cpp:107:32: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
update(rt[now+1],rt[now],l,r,1,n,x);
^
0_0_36263681_4130.cpp:66:13: note: in passing argument 1 of 'void update(ll&, ll, ll, ll, ll, ll, ll)'
inline void update(ll&k,ll lk,ll nl,ll nr,ll l,ll r,ll x)
^
|