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_21756724_27898.cpp: In function 'double angle(Point)':
0_0_21756724_27898.cpp:25:51: error: 'pi' was not declared in this scope
  if (a.x>0 && a.y>0)   return atan(y / x)*180.0 / pi;
                                                   ^
0_0_21756724_27898.cpp:26:63: error: 'pi' was not declared in this scope
  else if (a.x<0 && a.y>0)  return 180.0 - atan(y / x)*180.0 / pi;
                                                               ^
0_0_21756724_27898.cpp:27:63: error: 'pi' was not declared in this scope
  else if (a.x<0 && a.y<0)  return 180.0 + atan(y / x)*180.0 / pi;
                                                               ^
0_0_21756724_27898.cpp:28:63: error: 'pi' was not declared in this scope
  else if (a.x>0 && a.y<0)  return 360.0 - atan(y / x)*180.0 / pi;
                                                               ^


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-25 18:50:15, Gzip enabled