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_31800141_11024.cpp: In function 'double ClosestPair(int, int)':
0_0_31800141_11024.cpp:60:37: error: 'd' was not declared in this scope
   if(fabs(point[mid].x-point[i].x)<=d)    // 找出里 mid 距离d以内的点,保存在 tmpt 中
                                     ^
0_0_31800141_11024.cpp:68:59: error: 'd' was not declared in this scope
   for(j=i+1;j<k&&j<i+6&&point[tmpt[j]].y-point[tmpt[i]].y<d;j++)
                                                           ^
0_0_31800141_11024.cpp:75:9: error: 'd' was not declared in this scope
  return d;
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 16:51:10, Gzip enabled