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_33525374_2554.cpp: In member function 'bool Line::SegCrossSeg(const Line&, Point&)':
0_0_33525374_2554.cpp:60:22: error: no match for 'operator/' (operand types are 'Point' and 'double')
         p=(a*s2-b*s1)/(s2-s1);
                      ^
0_0_33525374_2554.cpp:60:22: note: candidate is:
0_0_33525374_2554.cpp:30:12: note: double Point::operator/(const Point&) const
     double operator /(const Point &p)const{return x*p.x+y*p.y;}
            ^
0_0_33525374_2554.cpp:30:12: note:   no known conversion for argument 1 from 'double' to 'const Point&'
0_0_33525374_2554.cpp: In member function 'Point Line::CrossPoint(const Line&)':
0_0_33525374_2554.cpp:81:26: error: no match for 'operator/' (operand types are 'Point' and 'double')
         return(a*s2-b*s1)/(s2-s1);
                          ^
0_0_33525374_2554.cpp:81:26: note: candidate is:
0_0_33525374_2554.cpp:30:12: note: double Point::operator/(const Point&) const
     double operator /(const Point &p)const{return x*p.x+y*p.y;}
            ^
0_0_33525374_2554.cpp:30:12: note:   no known conversion for argument 1 from 'double' to 'const Point&'
0_0_33525374_2554.cpp: In member function 'Point Polygon::CalcBary()':
0_0_33525374_2554.cpp:222:34: error: no match for 'operator/' (operand types are 'Point' and 'double')
         if(dcmp(area)) return ret/area;
                                  ^
0_0_33525374_2554.cpp:222:34: note: candidate is:
0_0_33525374_2554.cpp:30:12: note: double Point::operator/(const Point&) const
     double operator /(const Point &p)const{return x*p.x+y*p.y;}
            ^
0_0_33525374_2554.cpp:30:12: note:   no known conversion for argument 1 from 'double' to 'const 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-11-26 20:17:02, Gzip enabled