0_0_33814990_17697.cpp:34:1: error: 'pair' does not name a type
pair<int,int> Closest_Pair(int left,int right)
^
0_0_33814990_17697.cpp: In function 'int main()':
0_0_33814990_17697.cpp:86:18: error: 'scanf' was not declared in this scope
scanf("%d",&T);
^
0_0_33814990_17697.cpp:103:31: error: 'sort' was not declared in this scope
sort(p,p+end,cmpxy);
^
0_0_33814990_17697.cpp:106:13: error: 'pair' was not declared in this scope
pair<int,int>pr = Closest_Pair(0,end-1);
^
0_0_33814990_17697.cpp:106:18: error: expected primary-expression before 'int'
pair<int,int>pr = Closest_Pair(0,end-1);
^
0_0_33814990_17697.cpp:107:29: error: 'pr' was not declared in this scope
int Max = max(p[pr.first].index,p[pr.second].index);
^
0_0_33814990_17697.cpp:107:63: error: 'max' was not declared in this scope
int Max = max(p[pr.first].index,p[pr.second].index);
^
0_0_33814990_17697.cpp:111:29: error: 'printf' was not declared in this scope
printf("%I64d\n",ans);
^
|