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_36374813_4071.cpp:18:16: error: 'const long double acos' redeclared as different kind of symbol
 #define PI acos(-1.0)
                ^
0_0_36374813_4071.cpp:79:19: note: in expansion of macro 'PI'
 const long double PI = acos(-1.0);
                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from 0_0_36374813_4071.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:145:18: note: previous declaration 'double acos(double)'
   double __cdecl acos(double _X);
                  ^
0_0_36374813_4071.cpp: In function 'int main()':
0_0_36374813_4071.cpp:48:27: error: 'CASE_NUM' was not declared in this scope
 #define SOLVE_CASES  FORA(CASE_NUM, 1, _TvT_) solve()
                           ^
0_0_36374813_4071.cpp:45:27: note: in definition of macro 'FORA'
 #define FORA(A,B, C) for (A = (B); A <= (C); ++A)
                           ^
0_0_36374813_4071.cpp:139:5: note: in expansion of macro 'SOLVE_CASES'
     SOLVE_CASES;
     ^
0_0_36374813_4071.cpp: At global scope:
0_0_36374813_4071.cpp:142:1: error: expected declaration before '}' token
 }
 ^


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-01 12:18:21, Gzip enabled