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_32434674_9037.cpp:7:13: error: array bound is not an integer constant before ']' token
 double s[MAX];
             ^
0_0_32434674_9037.cpp: In function 'int main()':
0_0_32434674_9037.cpp:13:5: error: 's' was not declared in this scope
     s[1] = 1, s[2] = PI / 4.0;
     ^
0_0_32434674_9037.cpp:14:25: error: 'MAXN' was not declared in this scope
     for(int i = 3 ; i < MAXN ; i++)
                         ^
0_0_32434674_9037.cpp:21:34: error: 'si' was not declared in this scope
    printf("%.10lf\n",1.0*r/(n+1)/si[n]);
                                  ^
0_0_32434674_9037.cpp:23:35: error: 'si' was not declared in this scope
    printf("%.10lf\n",1.0*r/(n+1)/(si[n]*pi/2));
                                   ^
0_0_32434674_9037.cpp:23:41: error: 'pi' was not declared in this scope
    printf("%.10lf\n",1.0*r/(n+1)/(si[n]*pi/2));
                                         ^


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 10:56:24, Gzip enabled