0_0_20654918_32209.cpp:10:17: error: expected ']' before ',' token
#define MAXN 100,000
^
0_0_20654918_32209.cpp:12:12: note: in expansion of macro 'MAXN'
int T,n,tt[MAXN];
^
0_0_20654918_32209.cpp:10:18: error: expected unqualified-id before numeric constant
#define MAXN 100,000
^
0_0_20654918_32209.cpp:12:12: note: in expansion of macro 'MAXN'
int T,n,tt[MAXN];
^
0_0_20654918_32209.cpp:10:17: error: expected ']' before ',' token
#define MAXN 100,000
^
0_0_20654918_32209.cpp:16:4: note: in expansion of macro 'MAXN'
}a[MAXN];
^
0_0_20654918_32209.cpp:10:18: error: expected unqualified-id before numeric constant
#define MAXN 100,000
^
0_0_20654918_32209.cpp:16:4: note: in expansion of macro 'MAXN'
}a[MAXN];
^
0_0_20654918_32209.cpp: In function 'bool cmp2(int, int)':
0_0_20654918_32209.cpp:23:10: error: 'a' was not declared in this scope
return a[q].y<a[w].y;
^
0_0_20654918_32209.cpp: In function 'double ans(int, int)':
0_0_20654918_32209.cpp:42:34: error: 'a' was not declared in this scope
if(right==left+1) return dis(a[left],a[right]);
^
0_0_20654918_32209.cpp:43: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_20654918_32209.cpp:47: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_20654918_32209.cpp:48:3: error: 'tt' was not declared in this scope
tt[++cnt]=i;
^
0_0_20654918_32209.cpp:49:8: error: 'tt' was not declared in this scope
sort(tt+1,tt+cnt+1,cmp2);
^
0_0_20654918_32209.cpp:53:9: error: 'a' was not declared in this scope
if(a[tt[j]].y-a[tt[i]].y>=hehe) break;
^
0_0_20654918_32209.cpp:54:24: error: 'a' was not declared in this scope
hehe=Min(hehe,dis(a[tt[j]],a[tt[i]]));
^
0_0_20654918_32209.cpp: In function 'void init()':
0_0_20654918_32209.cpp:65:20: error: 'a' was not declared in this scope
{scanf("%lf%lf",&a[i].x,&a[i].y);}
^
0_0_20654918_32209.cpp:66:8: error: 'a' was not declared in this scope
sort(a+1,a+n+1,cmp);
^
|