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_21606113_12860.cpp: In member function 'double Point::dist(Point)':
0_0_21606113_12860.cpp:14:58: error: 'sqrt' was not declared in this scope
               return sqrt((x-o.x)*(x-o.x)+(y-o.y)*(y-o.y)) ;
                                                          ^
0_0_21606113_12860.cpp: In member function 'void Point::read()':
0_0_21606113_12860.cpp:17:37: error: 'scanf' was not declared in this scope
             scanf("%lf%lf" , &x , &y) ;
                                     ^
0_0_21606113_12860.cpp: At global scope:
0_0_21606113_12860.cpp:21:30: error: 'acos' was not declared in this scope
 const  double  PI = acos(-1.0) ;
                              ^
0_0_21606113_12860.cpp: In function 'int main()':
0_0_21606113_12860.cpp:28:6: error: 'cin' was not declared in this scope
      cin>>t ;
      ^
0_0_21606113_12860.cpp:37:73: error: 'acos' was not declared in this scope
                    x[k++] = acos((po[j].x - po[i].x) / po[i].dist(po[j])) ;
                                                                         ^
0_0_21606113_12860.cpp:40:28: error: 'sort' was not declared in this scope
                sort(x , x+k) ;
                            ^
0_0_21606113_12860.cpp:49:12: error: 'cout' was not declared in this scope
            cout<<sum<<endl ;
            ^
0_0_21606113_12860.cpp:49:23: error: 'endl' was not declared in this scope
            cout<<sum<<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-11-24 15:54:26, Gzip enabled