F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-17 06:46:13, Gzip enabled