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_21732706_18372.cpp: In function 'double rev(double)':
0_0_21732706_18372.cpp:10:12: error: 'M_PI' was not declared in this scope
 #define pi M_PI
            ^
0_0_21732706_18372.cpp:34:24: note: in expansion of macro 'pi'
  if (t < 0) return t + pi;
                        ^
0_0_21732706_18372.cpp:10:12: error: 'M_PI' was not declared in this scope
 #define pi M_PI
            ^
0_0_21732706_18372.cpp:35:13: note: in expansion of macro 'pi'
  return t - pi;
             ^
0_0_21732706_18372.cpp: In function 'int main()':
0_0_21732706_18372.cpp:10:12: error: 'M_PI' was not declared in this scope
 #define pi M_PI
            ^
0_0_21732706_18372.cpp:52:24: note: in expansion of macro 'pi'
   l = v[1]; r = v[1] + 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-09-30 12:14:10, Gzip enabled