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_17389517_24772.cpp: In function 'double get_val(point&, point&, point&)':
0_0_17389517_24772.cpp:67:28: error: no matching function for call to 'point::multi_dot(point)'
     if ((a-b).multi_dot(c-b)<=0) return a.dis(b);
                            ^
0_0_17389517_24772.cpp:67:28: note: candidate is:
0_0_17389517_24772.cpp:51:12: note: double point::multi_dot(point&)
     double multi_dot(point &a)
            ^
0_0_17389517_24772.cpp:51:12: note:   no known conversion for argument 1 from 'point' to 'point&'
0_0_17389517_24772.cpp:68:28: error: no matching function for call to 'point::multi_dot(point)'
     if ((a-c).multi_dot(b-c)<=0) return a.dis(c);
                            ^
0_0_17389517_24772.cpp:68:28: note: candidate is:
0_0_17389517_24772.cpp:51:12: note: double point::multi_dot(point&)
     double multi_dot(point &a)
            ^
0_0_17389517_24772.cpp:51:12: note:   no known conversion for argument 1 from 'point' to 'point&'
0_0_17389517_24772.cpp: In function 'bool try_best_ans(double)':
0_0_17389517_24772.cpp:103:68: error: invalid initialization of non-const reference of type 'point&' from an rvalue of type 'point'
             if (cross(point(newx,newy),point(newx,1e18),a[i],a[i+1])) flag^=1;
                                                                    ^
0_0_17389517_24772.cpp:59:8: note: in passing argument 1 of 'double cross(point&, point&, point&, point&)'
 double cross(point &a,point &b,point &c,point &d)
        ^
0_0_17389517_24772.cpp:109:63: error: invalid initialization of non-const reference of type 'point&' from an rvalue of type 'point'
             mins=min(mins,get_val(point(newx,newy),a[i],a[i+1]));
                                                               ^
0_0_17389517_24772.cpp:65:8: note: in passing argument 1 of 'double get_val(point&, point&, point&)'
 double get_val(point &a,point &b,point &c)
        ^


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-01 18:42:00, Gzip enabled