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_26156509_11379.cpp: In member function 'double Point::degree()':
0_0_26156509_11379.cpp:102:73: error: 'pi' was not declared in this scope
         return sgn(y) ? std::atan((len() - x) / y) * 2 : (1 - sgn(x)) * pi / 2;
                                                                         ^
0_0_26156509_11379.cpp: In member function 'double Circle::area()':
0_0_26156509_11379.cpp:380:16: error: 'pi' was not declared in this scope
         return pi * r * r;
                ^
0_0_26156509_11379.cpp: In member function 'double Circle::len()':
0_0_26156509_11379.cpp:383:20: error: 'pi' was not declared in this scope
         return 2 * pi * r;
                    ^


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-23 09:18:53, Gzip enabled