0_0_32278751_9326.cpp: In function 'int cmp(double)':
0_0_32278751_9326.cpp:2:15: error: 'fabs' was not declared in this scope
if(fabs(x) < 1e-8) return 0 ;
^
0_0_32278751_9326.cpp: In function 'double dist(const point&, const point&)':
0_0_32278751_9326.cpp:19:71: error: 'sqrt' was not declared in this scope
return sqrt( (a.x-b.x)*(a.x-b.x) + (a.y-b.y)*(a.y-b.y) ) ;
^
0_0_32278751_9326.cpp: At global scope:
0_0_32278751_9326.cpp:32:1: error: 'vector' does not name a type
vector<point> convex_hull(vector<point> a){
^
0_0_32278751_9326.cpp: In function 'int main()':
0_0_32278751_9326.cpp:57:7: error: 'cin' was not declared in this scope
cin>>t ;
^
0_0_32278751_9326.cpp:60:12: error: 'vector' was not declared in this scope
vector<point> lis(n) ;
^
0_0_32278751_9326.cpp:60:24: error: expected primary-expression before '>' token
vector<point> lis(n) ;
^
0_0_32278751_9326.cpp:60:31: error: 'lis' was not declared in this scope
vector<point> lis(n) ;
^
0_0_32278751_9326.cpp:62:55: error: 'scanf' was not declared in this scope
scanf("%lf%lf" , &lis[i].x , &lis[i].y) ;
^
0_0_32278751_9326.cpp:66:24: error: expected primary-expression before '>' token
vector<point> hull = convex_hull(lis) ;
^
0_0_32278751_9326.cpp:66:26: error: 'hull' was not declared in this scope
vector<point> hull = convex_hull(lis) ;
^
0_0_32278751_9326.cpp:66:48: error: 'convex_hull' was not declared in this scope
vector<point> hull = convex_hull(lis) ;
^
0_0_32278751_9326.cpp:69:40: error: 'memset' was not declared in this scope
memset(vis , 0 , sizeof(vis)) ;
^
0_0_32278751_9326.cpp:78:12: error: 'cout' was not declared in this scope
cout<< max(0 , q * qcnt - p * pcnt )<< endl ;
^
0_0_32278751_9326.cpp:78:47: error: 'max' was not declared in this scope
cout<< max(0 , q * qcnt - p * pcnt )<< endl ;
^
0_0_32278751_9326.cpp:78:51: error: 'endl' was not declared in this scope
cout<< max(0 , q * qcnt - p * pcnt )<< endl ;
^
|