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_35250609_12918.cpp: In function 'void processAns()':
0_0_35250609_12918.cpp:566:47: error: no matching function for call to 'Cross::Cross(Point2D, int&)'
             stk[tp++] = Cross(Point2D(0, 0), i);
                                               ^
0_0_35250609_12918.cpp:566:47: note: candidates are:
0_0_35250609_12918.cpp:486:5: note: Cross::Cross(Vector2D&, int)
     Cross(Vector2D& p, int i) : pre(p), index(i) {}
     ^
0_0_35250609_12918.cpp:486:5: note:   no known conversion for argument 1 from 'Point2D' to 'Vector2D& {aka Point2D&}'
0_0_35250609_12918.cpp:485:5: note: Cross::Cross()
     Cross() {}
     ^
0_0_35250609_12918.cpp:485:5: note:   candidate expects 0 arguments, 2 provided
0_0_35250609_12918.cpp:481:8: note: constexpr Cross::Cross(const Cross&)
 struct Cross {
        ^
0_0_35250609_12918.cpp:481:8: note:   candidate expects 1 argument, 2 provided
0_0_35250609_12918.cpp:481:8: note: constexpr Cross::Cross(Cross&&)
0_0_35250609_12918.cpp:481:8: note:   candidate expects 1 argument, 2 provided
0_0_35250609_12918.cpp:573:67: error: no matching function for call to 'Cross::Cross(Point2D, int&)'
                 stk[tp] = Cross(Ans[i] - Ans[stk[tp - 1].index], i);
                                                                   ^
0_0_35250609_12918.cpp:573:67: note: candidates are:
0_0_35250609_12918.cpp:486:5: note: Cross::Cross(Vector2D&, int)
     Cross(Vector2D& p, int i) : pre(p), index(i) {}
     ^
0_0_35250609_12918.cpp:486:5: note:   no known conversion for argument 1 from 'Point2D' to 'Vector2D& {aka Point2D&}'
0_0_35250609_12918.cpp:485:5: note: Cross::Cross()
     Cross() {}
     ^
0_0_35250609_12918.cpp:485:5: note:   candidate expects 0 arguments, 2 provided
0_0_35250609_12918.cpp:481:8: note: constexpr Cross::Cross(const Cross&)
 struct Cross {
        ^
0_0_35250609_12918.cpp:481:8: note:   candidate expects 1 argument, 2 provided
0_0_35250609_12918.cpp:481:8: note: constexpr Cross::Cross(Cross&&)
0_0_35250609_12918.cpp:481:8: note:   candidate expects 1 argument, 2 provided


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-23 00:43:01, Gzip enabled