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_27638842_132.cpp:15:22: error: 'acos' was not declared in this scope
 double PI = acos(-1.0);
                      ^
0_0_27638842_132.cpp: In function 'double distance(Point, Point)':
0_0_27638842_132.cpp:27:63: 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_27638842_132.cpp: In function 'int main()':
0_0_27638842_132.cpp:95:34: error: 'cos' was not declared in this scope
      tem.x = pos[i].x + cos(angle)*temp;
                                  ^
0_0_27638842_132.cpp:96:34: error: 'sin' was not declared in this scope
      tem.y = pos[i].y + sin(angle)*temp;
                                  ^


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-09-28 13:17:45, Gzip enabled