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_35249550_7777.cpp: In function 'int main()':
0_0_35249550_7777.cpp:4:22: error: expected ')' before ';' token
 #define PI acos(-1.0);//为追求高精度,使用反余弦函数acos,因为cosπ=-1,故:acos(-1)=π
                      ^
0_0_35249550_7777.cpp:30:38: note: in expansion of macro 'PI'
                 num+=(int)(a[i]*a[i]*PI/mid);
                                      ^
0_0_35249550_7777.cpp:30:40: error: expected primary-expression before '/' token
                 num+=(int)(a[i]*a[i]*PI/mid);
                                        ^


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-10-06 17:11:22, Gzip enabled