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_38740185_6142.cpp: In function 'double PointToSegDist(double, double, double, double, double, double)':
0_0_38740185_6142.cpp:7:32: error: 'Math' was not declared in this scope
    7 |         if (cross <= 0) return Math.Sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1));
      |                                ^~~~
0_0_38740185_6142.cpp:10:33: error: 'Math' was not declared in this scope
   10 |         if (cross >= d2) return Math.Sqrt((x - x2) * (x - x2) + (y - y2) * (y - y2));
      |                                 ^~~~
0_0_38740185_6142.cpp:15:16: error: 'Math' was not declared in this scope
   15 |         return Math.Sqrt((x - px) * (x - px) + (y - py) * (y - py))
      |                ^~~~
0_0_38740185_6142.cpp:15:68: error: expected ';' before '}' token
   15 |         return Math.Sqrt((x - px) * (x - px) + (y - py) * (y - py))
      |                                                                    ^
      |                                                                    ;
   16 | }
      | ~                                                                   


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 04:38:22, Gzip enabled