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_32855455_11916.cpp: In function 'bool cmp(point&, point&)':
0_0_32855455_11916.cpp:41:29: error: no match for 'operator*' (operand types are 'point' and 'point')
     double cp = (ps[0] - a) * (b - a);
                             ^
0_0_32855455_11916.cpp:41:29: note: candidate is:
0_0_32855455_11916.cpp:30:12: note: double point::operator*(point&)
     double operator * (point &o) 
            ^
0_0_32855455_11916.cpp:30:12: note:   no known conversion for argument 1 from 'point' to 'point&'
0_0_32855455_11916.cpp: In function 'double GHS()':
0_0_32855455_11916.cpp:61:33: error: no match for 'operator*' (operand types are 'point' and 'point')
     for (i = 2; (ps[0] - ps[1]) * (ps[i] - ps[1]) == 0; i++);
                                 ^
0_0_32855455_11916.cpp:61:33: note: candidate is:
0_0_32855455_11916.cpp:30:12: note: double point::operator*(point&)
     double operator * (point &o) 
            ^
0_0_32855455_11916.cpp:30:12: note:   no known conversion for argument 1 from 'point' to 'point&'
0_0_32855455_11916.cpp:65:64: error: no match for 'operator*' (operand types are 'point' and 'point')
         while ((chul[chul.size() - 2] - chul[chul.size() - 1]) * (ps[i] - chul[chul.size() - 1]) >= 0)
                                                                ^
0_0_32855455_11916.cpp:65:64: note: candidate is:
0_0_32855455_11916.cpp:30:12: note: double point::operator*(point&)
     double operator * (point &o) 
            ^
0_0_32855455_11916.cpp:30:12: note:   no known conversion for argument 1 from 'point' to 'point&'


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-05-03 13:17:55, Gzip enabled