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_16199457_17130.cpp: In member function 'P P::rotate(const double&) const':
0_0_16199457_17130.cpp:9:24: error: 'cos' was not declared in this scope
   return P( x*cos(theta)-y*sin(theta),x*sin(theta)+y*cos(theta) ) ;
                        ^
0_0_16199457_17130.cpp:9:37: error: 'sin' was not declared in this scope
   return P( x*cos(theta)-y*sin(theta),x*sin(theta)+y*cos(theta) ) ;
                                     ^
0_0_16199457_17130.cpp: In member function 'double P::len(const P&) const':
0_0_16199457_17130.cpp:15:27: error: 'hypot' was not declared in this scope
   return hypot(x-o.x,y-o.y) ;
                           ^
0_0_16199457_17130.cpp: In member function 'double P::angle() const':
0_0_16199457_17130.cpp:17:41: error: 'atan2' was not declared in this scope
  double angle() const { return atan2(y,x); }
                                         ^
0_0_16199457_17130.cpp: In member function 'void P::read()':
0_0_16199457_17130.cpp:20:23: error: 'scanf' was not declared in this scope
   scanf("%lf%lf",&x,&y);
                       ^
0_0_16199457_17130.cpp: In member function 'void P::output()':
0_0_16199457_17130.cpp:23:29: error: 'printf' was not declared in this scope
   printf("(%.9lf,%.9lf)",x,y);
                             ^


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-07-05 09:45:29, Gzip enabled