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_13781394_20735.cpp: In function 'double calculateArea(polygon&)':
0_0_13781394_20735.cpp:25:21: error: invalid initialization of non-const reference of type 'vector& {aka std::complex<double>&}' from an rvalue of type 'std::complex<double>'
   ::vector &va = *p - poly[0], &vb = *(p + 1) - poly[0];
                     ^
0_0_13781394_20735.cpp:25:47: error: invalid initialization of non-const reference of type 'vector& {aka std::complex<double>&}' from an rvalue of type 'std::complex<double>'
   ::vector &va = *p - poly[0], &vb = *(p + 1) - poly[0];
                                               ^
0_0_13781394_20735.cpp: In function 'int side_count(line&, int, int)':
0_0_13781394_20735.cpp:58:24: error: invalid initialization of non-const reference of type 'vector& {aka std::complex<double>&}' from an rvalue of type 'std::complex<double>'
    ::vector &va = l.pb - l.pa, &vb = verties[i] - l.pa;
                        ^
0_0_13781394_20735.cpp:58:49: error: invalid initialization of non-const reference of type 'vector& {aka std::complex<double>&}' from an rvalue of type 'std::complex<double>'
    ::vector &va = l.pb - l.pa, &vb = verties[i] - l.pa;
                                                 ^
0_0_13781394_20735.cpp: In function 'int main()':
0_0_13781394_20735.cpp:94:35: error: invalid initialization of non-const reference of type 'polygon& {aka std::vector<std::complex<double> >&}' from an rvalue of type 'polygon {aka std::vector<std::complex<double> >}'
   polygon &p = createPolygon(lines);
                                   ^


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-06-29 16:11:13, Gzip enabled