0_0_28657523_24680.cpp:12:17: error: expected ']' before ';' token
#define N 100005;
^
0_0_28657523_24680.cpp:16:4: note: in expansion of macro 'N'
}p[N];
^
0_0_28657523_24680.cpp:16:5: error: expected unqualified-id before ']' token
}p[N];
^
0_0_28657523_24680.cpp:12:17: error: expected ']' before ';' token
#define N 100005;
^
0_0_28657523_24680.cpp:17:9: note: in expansion of macro 'N'
int arr[N];
^
0_0_28657523_24680.cpp:17:10: error: expected unqualified-id before ']' token
int arr[N];
^
0_0_28657523_24680.cpp: In function 'bool cmpy(int, int)':
0_0_28657523_24680.cpp:27:9: error: 'p' was not declared in this scope
return p[a].y<p[b].y;
^
0_0_28657523_24680.cpp: In function 'double close(int, int)':
0_0_28657523_24680.cpp:35:24: error: 'p' was not declared in this scope
if(r-1==l) return dis(p[l],p[r]);
^
0_0_28657523_24680.cpp:36:29: error: 'p' was not declared in this scope
if(r-2==l) return minx(dis(p[l],p[l+1]),minx(dis(p[l+1],p[r]),dis(p[l],p[r])));
^
0_0_28657523_24680.cpp:41:6: error: 'p' was not declared in this scope
if(p[i].x>p[mid].x-ans&&p[i].x<=p[mid].x+ans)
^
0_0_28657523_24680.cpp:42:3: error: 'arr' was not declared in this scope
arr[cnt++]=i;
^
0_0_28657523_24680.cpp:44:7: error: 'arr' was not declared in this scope
sort(arr,arr+cnt,cmpy);
^
0_0_28657523_24680.cpp:47:7: error: 'p' was not declared in this scope
if(p[arr[j]].y-p[arr[i]].y>=ans) break;
^
0_0_28657523_24680.cpp:48:21: error: 'p' was not declared in this scope
ans=minx(ans,dis(p[arr[i]],p[arr[j]]));
^
0_0_28657523_24680.cpp: In function 'int main()':
0_0_28657523_24680.cpp:58:20: error: 'p' was not declared in this scope
scanf("%lf%lf",&p[i].x,&p[i].y);
^
0_0_28657523_24680.cpp:60:8: error: 'p' was not declared in this scope
sort(p,p+n,cmpx);
^
|