F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;}
             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 21:28:00, Gzip enabled