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_38540769_12577.cpp: In function 'real PointLineDistance(const Point&, const Line&)':
0_0_38540769_12577.cpp:45:16: error: no match for 'operator-' (operand types are 'const Point' and 'const Point')
  return Cross(A-B.p,B.v)/Length(B.v);
                ^
0_0_38540769_12577.cpp: In function 'real solve()':
0_0_38540769_12577.cpp:67:13: error: no match for 'operator-' (operand types are 'Vector {aka Point}' and 'Vector {aka Point}')
  AB=Line(A,B-A);
             ^
0_0_38540769_12577.cpp:68:13: error: no match for 'operator-' (operand types are 'Vector {aka Point}' and 'Vector {aka Point}')
  BC=Line(B,C-B);
             ^
0_0_38540769_12577.cpp:69:13: error: no match for 'operator-' (operand types are 'Vector {aka Point}' and 'Vector {aka Point}')
  CA=Line(C,A-C);
             ^


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-22 22:13:41, Gzip enabled