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_34018042_28900.cpp: In function 'double findClosestPair(int, int)':
0_0_34018042_28900.cpp:82:31: error: 'a' was not declared in this scope
     if(l + 1 == r) return dis(a[l],a[r]);
                               ^
0_0_34018042_28900.cpp:82:40: error: 'dis' was not declared in this scope
     if(l + 1 == r) return dis(a[l],a[r]);
                                        ^
0_0_34018042_28900.cpp:86:5: error: 'lp' was not declared in this scope
     lp.clear(); rp.clear();
     ^
0_0_34018042_28900.cpp:86:17: error: 'rp' was not declared in this scope
     lp.clear(); rp.clear();
                 ^
0_0_34018042_28900.cpp:89:17: error: 'a' was not declared in this scope
         if(fabs(a[i].x - a[mid].x) < d1)
                 ^
0_0_34018042_28900.cpp:93:17: error: 'a' was not declared in this scope
         if(fabs(a[i].x - a[mid].x) < d1)
                 ^
0_0_34018042_28900.cpp:102:73: error: 'dis' was not declared in this scope
             if(fabs(lp[i].y - rp[j].y) < d1) d1 = min(d1,dis(lp[i],rp[j]));
                                                                         ^
0_0_34018042_28900.cpp: In function 'int main()':
0_0_34018042_28900.cpp:118:40: error: 'getRadius' was not declared in this scope
         double ret = getRadius(0, N - 1);
                                        ^


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-07-07 06:17:13, Gzip enabled