0_0_29953465_30529.cpp: In function 'void update(int&, int, int, int, int, int, int)':
0_0_29953465_30529.cpp:41:20: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
update(le[e],le[p],l,mid,a,b,d);
^
0_0_29953465_30529.cpp:27:6: note: in passing argument 1 of 'void update(int&, int, int, int, int, int, int)'
void update(int &e,int p,int l,int r,int a,int b,int d)
^
0_0_29953465_30529.cpp:43:20: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
update(ri[e],ri[p],mid+1,r,a,b,d);
^
0_0_29953465_30529.cpp:27:6: note: in passing argument 1 of 'void update(int&, int, int, int, int, int, int)'
void update(int &e,int p,int l,int r,int a,int b,int d)
^
0_0_29953465_30529.cpp:46:20: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
update(le[e],le[p],l,mid,a,mid,d);
^
0_0_29953465_30529.cpp:27:6: note: in passing argument 1 of 'void update(int&, int, int, int, int, int, int)'
void update(int &e,int p,int l,int r,int a,int b,int d)
^
0_0_29953465_30529.cpp:47:20: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
update(ri[e],ri[p],mid+1,r,mid+1,b,d);
^
0_0_29953465_30529.cpp:27:6: note: in passing argument 1 of 'void update(int&, int, int, int, int, int, int)'
void update(int &e,int p,int l,int r,int a,int b,int d)
^
0_0_29953465_30529.cpp: In function 'int main()':
0_0_29953465_30529.cpp:83:30: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
update(tr[now],tr[now-1],1,n,a,b,c);
^
0_0_29953465_30529.cpp:27:6: note: in passing argument 1 of 'void update(int&, int, int, int, int, int, int)'
void update(int &e,int p,int l,int r,int a,int b,int d)
^
|