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_14972705_2643.cpp: In member function 'sqr& sqr::operator+(sqr&)':
0_0_14972705_2643.cpp:14:34: error: invalid initialization of non-const reference of type 'sqr&' from an rvalue of type 'sqr'
   if(x1==0||an.x1==0) return sqr(); 
                                  ^
0_0_14972705_2643.cpp:16:70: error: invalid initialization of non-const reference of type 'sqr&' from an rvalue of type 'sqr'
    return sqr(max(x1,an.x1),max(y1,an.y1),min(x2,an.x2),min(y2,an.y2));
                                                                      ^
0_0_14972705_2643.cpp:17:19: error: invalid initialization of non-const reference of type 'sqr&' from an rvalue of type 'sqr'
   else return sqr();
                   ^


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-23 07:00:40, Gzip enabled