0_0_36320607_19812.cpp: In function 'int ins(int&, int, const int&)':
0_0_36320607_19812.cpp:32:20: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
#define rs (p << 1 | 1)
^
0_0_36320607_19812.cpp:48:13: note: in expansion of macro 'rs'
res = ins(rs, dep - 1, val);
^
0_0_36320607_19812.cpp:34:5: note: in passing argument 1 of 'int ins(int&, int, const int&)'
int ins(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp:31:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
#define ls (p << 1)
^
0_0_36320607_19812.cpp:50:13: note: in expansion of macro 'ls'
res = ins(ls, dep - 1, val);
^
0_0_36320607_19812.cpp:34:5: note: in passing argument 1 of 'int ins(int&, int, const int&)'
int ins(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp: In function 'int del(int&, int, const int&)':
0_0_36320607_19812.cpp:32:20: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
#define rs (p << 1 | 1)
^
0_0_36320607_19812.cpp:64:13: note: in expansion of macro 'rs'
res = del(rs, dep - 1, val);
^
0_0_36320607_19812.cpp:56:5: note: in passing argument 1 of 'int del(int&, int, const int&)'
int del(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp:31:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
#define ls (p << 1)
^
0_0_36320607_19812.cpp:66:13: note: in expansion of macro 'ls'
res = del(ls, dep - 1, val);
^
0_0_36320607_19812.cpp:56:5: note: in passing argument 1 of 'int del(int&, int, const int&)'
int del(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp: In function 'int solve(int&, int, const int&, const int&)':
0_0_36320607_19812.cpp:85:26: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
res += solve((p << 1) | x, dep - 1, a, b);
^
0_0_36320607_19812.cpp:71:5: note: in passing argument 1 of 'int solve(int&, int, const int&, const int&)'
int solve(int &p, int dep,const int &a, const int &b) {
^
0_0_36320607_19812.cpp: In function 'int main()':
0_0_36320607_19812.cpp:101:38: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
while(l > Q[i].l) ins(1, 16, c[--l]);
^
0_0_36320607_19812.cpp:34:5: note: in passing argument 1 of 'int ins(int&, int, const int&)'
int ins(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp:102:38: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
while(r < Q[i].r) ins(1, 16, c[++r]);
^
0_0_36320607_19812.cpp:34:5: note: in passing argument 1 of 'int ins(int&, int, const int&)'
int ins(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp:103:38: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
while(l < Q[i].l) del(1, 16, c[l++]);
^
0_0_36320607_19812.cpp:56:5: note: in passing argument 1 of 'int del(int&, int, const int&)'
int del(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp:104:38: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
while(r > Q[i].r) del(1, 16, c[r--]);
^
0_0_36320607_19812.cpp:56:5: note: in passing argument 1 of 'int del(int&, int, const int&)'
int del(int &p, int dep,const int &val) {
^
0_0_36320607_19812.cpp:105:45: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
ans[Q[i].id] = solve(1, 16, Q[i].a, Q[i].b);
^
0_0_36320607_19812.cpp:71:5: note: in passing argument 1 of 'int solve(int&, int, const int&, const int&)'
int solve(int &p, int dep,const int &a, const int &b) {
^
|