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_20654912_23224.cpp:14:17: error: expected ']' before ',' token
 #define MAXN 100,000
                 ^
0_0_20654912_23224.cpp:16:12: note: in expansion of macro 'MAXN'
 int T,n,tt[MAXN];
            ^
0_0_20654912_23224.cpp:14:18: error: expected unqualified-id before numeric constant
 #define MAXN 100,000
                  ^
0_0_20654912_23224.cpp:16:12: note: in expansion of macro 'MAXN'
 int T,n,tt[MAXN];
            ^
0_0_20654912_23224.cpp:14:17: error: expected ']' before ',' token
 #define MAXN 100,000
                 ^
0_0_20654912_23224.cpp:20:4: note: in expansion of macro 'MAXN'
 }a[MAXN];
    ^
0_0_20654912_23224.cpp:14:18: error: expected unqualified-id before numeric constant
 #define MAXN 100,000
                  ^
0_0_20654912_23224.cpp:20:4: note: in expansion of macro 'MAXN'
 }a[MAXN];
    ^
0_0_20654912_23224.cpp: In function 'bool cmp2(int, int)':
0_0_20654912_23224.cpp:27:10: error: 'a' was not declared in this scope
   return a[q].y<a[w].y;
          ^
0_0_20654912_23224.cpp: In function 'double ans(int, int)':
0_0_20654912_23224.cpp:46:34: error: 'a' was not declared in this scope
   if(right==left+1)   return dis(a[left],a[right]);
                                  ^
0_0_20654912_23224.cpp:47:38: error: 'a' was not declared in this scope
   if(right==left+2)   return Min(dis(a[left],a[right]),Min(dis(a[left],a[left+1]),dis(a[left+1],a[right])));
                                      ^
0_0_20654912_23224.cpp:51:5: error: 'a' was not declared in this scope
  if(a[i].x>=a[mid].x-hehe&&a[i].x<=a[mid].x+hehe)
     ^
0_0_20654912_23224.cpp:52:3: error: 'tt' was not declared in this scope
   tt[++cnt]=i;
   ^
0_0_20654912_23224.cpp:53:8: error: 'tt' was not declared in this scope
   sort(tt+1,tt+cnt+1,cmp2);
        ^
0_0_20654912_23224.cpp:57:9: error: 'a' was not declared in this scope
      if(a[tt[j]].y-a[tt[i]].y>=hehe) break;
         ^
0_0_20654912_23224.cpp:58:24: error: 'a' was not declared in this scope
      hehe=Min(hehe,dis(a[tt[j]],a[tt[i]]));
                        ^
0_0_20654912_23224.cpp: In function 'void init()':
0_0_20654912_23224.cpp:69:20: error: 'a' was not declared in this scope
   {scanf("%lf%lf",&a[i].x,&a[i].y);}
                    ^
0_0_20654912_23224.cpp:70:8: error: 'a' was not declared in this scope
   sort(a+1,a+n+1,cmp);
        ^


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-12-02 10:25:22, Gzip enabled