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