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_38888479_11558.cpp: In function 'double dis(point, point)':
0_0_38888479_11558.cpp:18:16: error: 'sqrt' was not declared in this scope
   18 |         return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
      |                ^~~~
0_0_38888479_11558.cpp: In function 'double closest(int, int)':
0_0_38888479_11558.cpp:28:20: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   28 |                 if(fabs(a[i].x-a[m].x)<d) b[++k]=a[i];//中线两侧距离d的所有点
      |                    ^~~~
      |                    labs


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 10:24:38, Gzip enabled