0_0_23207839_20642.cpp:42:19: error: expected ')' before ',' token
Point(doublex0,double y0):x(x0),y(y0){}
^
0_0_23207839_20642.cpp: In member function 'Point Point::operator*(double)':
0_0_23207839_20642.cpp:69:21: error: no matching function for call to 'Point::Point(double, double)'
return Point(t*x,t*y);
^
0_0_23207839_20642.cpp:69:21: note: candidates are:
0_0_23207839_20642.cpp:40:1: note: Point::Point()
Point(){}
^
0_0_23207839_20642.cpp:40:1: note: candidate expects 0 arguments, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(const Point&)
struct Point
^
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(Point&&)
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp: In member function 'Point Point::operator-(Point)':
0_0_23207839_20642.cpp:108:27: error: no matching function for call to 'Point::Point(double, double)'
return Point(x-pt.x,y-pt.y);
^
0_0_23207839_20642.cpp:108:27: note: candidates are:
0_0_23207839_20642.cpp:40:1: note: Point::Point()
Point(){}
^
0_0_23207839_20642.cpp:40:1: note: candidate expects 0 arguments, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(const Point&)
struct Point
^
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(Point&&)
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp: In member function 'Point Point::operator+(Point)':
0_0_23207839_20642.cpp:117:27: error: no matching function for call to 'Point::Point(double, double)'
return Point(x+pt.x,y+pt.y);
^
0_0_23207839_20642.cpp:117:27: note: candidates are:
0_0_23207839_20642.cpp:40:1: note: Point::Point()
Point(){}
^
0_0_23207839_20642.cpp:40:1: note: candidate expects 0 arguments, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(const Point&)
struct Point
^
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(Point&&)
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp: In function 'bool Point_line(Point, Point, Point, double)':
0_0_23207839_20642.cpp:331:44: error: no matching function for call to 'Point::Point(double, double)'
Point tmp=Point(b.y-a.y+o.x,a.x-b.x+o.y);
^
0_0_23207839_20642.cpp:331:44: note: candidates are:
0_0_23207839_20642.cpp:40:1: note: Point::Point()
Point(){}
^
0_0_23207839_20642.cpp:40:1: note: candidate expects 0 arguments, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(const Point&)
struct Point
^
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp:32:8: note: constexpr Point::Point(Point&&)
0_0_23207839_20642.cpp:32:8: note: candidate expects 1 argument, 2 provided
0_0_23207839_20642.cpp: At global scope:
0_0_23207839_20642.cpp:402:59: error: 'doubled' has not been declared
bool Judge(Point p[],int n,bool hash1[],int tn,Point tp[],doubled)
^
0_0_23207839_20642.cpp: In function 'bool Judge(Point*, int, bool*, int, Point*, int)':
0_0_23207839_20642.cpp:417:50: error: 'd' was not declared in this scope
if(!In_polygon(tp[i],p,n) &&Point_line(tp[i],p,n,d) )
^
|