0_0_22272808_24650.cpp: In function 'double GetDistance(Point, Point)':
0_0_22272808_24650.cpp:26:29: error: 'pow' was not declared in this scope
return sqrt(pow(a.x-b.x,2.0)+pow(a.y-b.y,2.0));
^
0_0_22272808_24650.cpp:26:47: error: 'sqrt' was not declared in this scope
return sqrt(pow(a.x-b.x,2.0)+pow(a.y-b.y,2.0));
^
0_0_22272808_24650.cpp: In function 'double GetMinDistance(int, int)':
0_0_22272808_24650.cpp:52:35: error: 'fabs' was not declared in this scope
if(fabs(arrP[i].x-arrP[middle].x)<minDistance)
^
0_0_22272808_24650.cpp:55:24: error: 'sort' was not declared in this scope
sort(arrX,arrX+j,CompY);
^
0_0_22272808_24650.cpp:59:35: error: 'fabs' was not declared in this scope
if(fabs(arrX[i].y-arrX[middle].y)<minDistance)
^
0_0_22272808_24650.cpp: In function 'int main()':
0_0_22272808_24650.cpp:75:8: error: 'cin' was not declared in this scope
while(cin>>n && n!=0)
^
0_0_22272808_24650.cpp:83:25: error: 'sort' was not declared in this scope
sort(arrP,arrP+n,CompX);
^
0_0_22272808_24650.cpp:85:3: error: 'cout' was not declared in this scope
cout.precision(2);
^
0_0_22272808_24650.cpp:86:9: error: 'fixed' was not declared in this scope
cout<<fixed<<minDistance/2<<endl;
^
0_0_22272808_24650.cpp:86:31: error: 'endl' was not declared in this scope
cout<<fixed<<minDistance/2<<endl;
^
|