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_17427721_13441.cpp: In function 'int main()':
0_0_17427721_13441.cpp:196:25: error: no matching function for call to 'line::line(point&, point)'
   line l1(p1, p1 + force), insecpoints;
                         ^
0_0_17427721_13441.cpp:196:25: note: candidates are:
0_0_17427721_13441.cpp:98:2: note: line::line(double, double, double)
  line(double a, double b, double c) : s(point(0, -c / b)), e(point(-c / a, 0)) {}
  ^
0_0_17427721_13441.cpp:98:2: note:   candidate expects 3 arguments, 2 provided
0_0_17427721_13441.cpp:97:2: note: line::line(point&, point&)
  line(point &a, point &b) : s(a), e(b) {}
  ^
0_0_17427721_13441.cpp:97:2: note:   no known conversion for argument 2 from 'point' to 'point&'
0_0_17427721_13441.cpp:96:2: note: line::line()
  line() {}
  ^
0_0_17427721_13441.cpp:96:2: note:   candidate expects 0 arguments, 2 provided
0_0_17427721_13441.cpp:92:16: note: constexpr line::line(const line&)
 typedef struct line
                ^
0_0_17427721_13441.cpp:92:16: note:   candidate expects 1 argument, 2 provided
0_0_17427721_13441.cpp:92:16: note: constexpr line::line(line&&)
0_0_17427721_13441.cpp:92:16: 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-17 23:36:23, Gzip enabled