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_14251826_12384.cpp: In function 'E ask(int, int, int, int, int)':
0_0_14251826_12384.cpp:74:55: error: invalid initialization of non-const reference of type 'E&' from an rvalue of type 'E'
       if(L <= m)  e = up(e , ask(L , R , l , m , t<<1)) ;
                                                       ^
0_0_14251826_12384.cpp:24:6: note: in passing argument 2 of 'E up(E&, E&)'
 E    up(E &l , E &r){
      ^
0_0_14251826_12384.cpp:75:60: error: invalid initialization of non-const reference of type 'E&' from an rvalue of type 'E'
       if(R > m)    e = up(e , ask(L , R , m+1 , r , t<<1|1)) ;
                                                            ^
0_0_14251826_12384.cpp:24:6: note: in passing argument 2 of 'E up(E&, E&)'
 E    up(E &l , E &r){
      ^


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-07-06 06:15:00, Gzip enabled