0_0_29927076_29246.cpp: In function 'void Btree(int, int, int&)':
0_0_29927076_29246.cpp:17:19: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
Btree(l,m,ls[o]);
^
0_0_29927076_29246.cpp:11:6: note: in passing argument 3 of 'void Btree(int, int, int&)'
void Btree(int l,int r,int &o)
^
0_0_29927076_29246.cpp:18:21: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
Btree(m+1,r,rs[o]);
^
0_0_29927076_29246.cpp:11:6: note: in passing argument 3 of 'void Btree(int, int, int&)'
void Btree(int l,int r,int &o)
^
0_0_29927076_29246.cpp: In function 'void update(int, int, int, int&, int)':
0_0_29927076_29246.cpp:28:31: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
if(k<=m) update(l,m,k,ls[o],ls[last]);
^
0_0_29927076_29246.cpp:20:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
void update(int l,int r,int k,int &o,int last)
^
0_0_29927076_29246.cpp:29:29: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
else update(m+1,r,k,rs[o],rs[last]);
^
0_0_29927076_29246.cpp:20:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
void update(int l,int r,int k,int &o,int last)
^
0_0_29927076_29246.cpp: In function 'int main()':
0_0_29927076_29246.cpp:48:24: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
Btree(1,sz,rt[0]);
^
0_0_29927076_29246.cpp:11:6: note: in passing argument 3 of 'void Btree(int, int, int&)'
void Btree(int l,int r,int &o)
^
0_0_29927076_29246.cpp:50:52: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
for(int i=1;i<=n;i++) update(1,sz,a[i],rt[i],rt[i-1]);
^
0_0_29927076_29246.cpp:20:6: note: in passing argument 4 of 'void update(int, int, int, int&, int)'
void update(int l,int r,int k,int &o,int last)
^
|