0_0_24974930_18490.cpp: In function 'void push_up(int)':
0_0_24974930_18490.cpp:22:27: error: invalid initialization of non-const reference of type 'LL& {aka long long int&}' from an rvalue of type 'LL {aka long long int}'
sum[id] = MOD(sum[id<<1] + sum[id<<1|1]);
^
0_0_24974930_18490.cpp:19:13: note: in passing argument 1 of 'void MOD(LL&)'
inline void MOD(LL &a){if(a >= mod) a -= mod;}
^
0_0_24974930_18490.cpp: In function 'LL quick_mul(LL, LL)':
0_0_24974930_18490.cpp:40:25: error: invalid initialization of non-const reference of type 'LL& {aka long long int&}' from an rvalue of type 'LL {aka long long int}'
if(b&1) ret = MOD(ret + a);
^
0_0_24974930_18490.cpp:19:13: note: in passing argument 1 of 'void MOD(LL&)'
inline void MOD(LL &a){if(a >= mod) a -= mod;}
^
0_0_24974930_18490.cpp:41:13: error: invalid initialization of non-const reference of type 'LL& {aka long long int&}' from an rvalue of type 'LL {aka long long int}'
a = MOD(a + a); b >>= 1;
^
0_0_24974930_18490.cpp:19:13: note: in passing argument 1 of 'void MOD(LL&)'
inline void MOD(LL &a){if(a >= mod) a -= mod;}
^
0_0_24974930_18490.cpp: In function 'LL query(int, int, int, int, int)':
0_0_24974930_18490.cpp:62:28: error: invalid initialization of non-const reference of type 'LL& {aka long long int&}' from an rvalue of type 'LL {aka long long int}'
if(R > mid) ret = MOD(ret + query(id<<1|1,mid+1,r,L,R));
^
0_0_24974930_18490.cpp:19:13: note: in passing argument 1 of 'void MOD(LL&)'
inline void MOD(LL &a){if(a >= mod) a -= mod;}
^
0_0_24974930_18490.cpp: In function 'void Solve()':
0_0_24974930_18490.cpp:74:17: error: invalid initialization of non-const reference of type 'LL& {aka long long int&}' from an rvalue of type 'LL {aka long long int}'
ans = MOD(ans + query(1,1,n,l,r));
^
0_0_24974930_18490.cpp:19:13: note: in passing argument 1 of 'void MOD(LL&)'
inline void MOD(LL &a){if(a >= mod) a -= mod;}
^
|