0_0_30518944_9321.cpp: In function 'void updata(long long int&, long long int, int, int, long long int, int, int)':
0_0_30518944_9321.cpp:50:32: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
if(l <= mid)updata(ls[index], ls[pre], l, r, x, L, mid);
^
0_0_30518944_9321.cpp:36:6: note: in passing argument 1 of 'void updata(long long int&, long long int, int, int, long long int, int, int)'
void updata(ll &index, ll pre, int l, int r, ll x, int L, int R)
^
0_0_30518944_9321.cpp:51:31: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
if(r > mid)updata(rs[index], rs[pre], l, r, x, mid + 1, R);
^
0_0_30518944_9321.cpp:36:6: note: in passing argument 1 of 'void updata(long long int&, long long int, int, int, long long int, int, int)'
void updata(ll &index, ll pre, int l, int r, ll x, int L, int R)
^
0_0_30518944_9321.cpp: In function 'int main()':
0_0_30518944_9321.cpp:103:26: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
updata(T[time], T[time-1], l, r, num, 1, n);
^
0_0_30518944_9321.cpp:36:6: note: in passing argument 1 of 'void updata(long long int&, long long int, int, int, long long int, int, int)'
void updata(ll &index, ll pre, int l, int r, ll x, int L, int R)
^
|