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_36573470_13694.cpp:55:14: error: array bound is not an integer constant before ']' token
 double w[maxn],h[maxn],v[maxn];
              ^
0_0_36573470_13694.cpp:55:22: error: array bound is not an integer constant before ']' token
 double w[maxn],h[maxn],v[maxn];
                      ^
0_0_36573470_13694.cpp:55:30: error: array bound is not an integer constant before ']' token
 double w[maxn],h[maxn],v[maxn];
                              ^
0_0_36573470_13694.cpp: In function 'double jisuan(double)':
0_0_36573470_13694.cpp:60:17: error: 'h' was not declared in this scope
         if(line>h[i]){num+=v[i];
                 ^
0_0_36573470_13694.cpp:60:28: error: 'v' was not declared in this scope
         if(line>h[i]){num+=v[i];
                            ^
0_0_36573470_13694.cpp:61:9: error: expected '}' before 'else'
         else{
         ^
0_0_36573470_13694.cpp:63:18: error: 'v' was not declared in this scope
             num+=v[i]*(1-(t*t*t)/(h[i]*h[i]*h[i]));
                  ^
0_0_36573470_13694.cpp: In function 'int solve()':
0_0_36573470_13694.cpp:70:36: error: 'h' was not declared in this scope
     for(i=1;i<=n;i++){scanf("%lf",&h[i]);maxn=max(maxn,h[i]);}
                                    ^
0_0_36573470_13694.cpp:71:36: error: 'w' was not declared in this scope
     for(i=1;i<=n;i++){scanf("%lf",&w[i]);v[i]=w[i]*w[i]*h[i]/3;sum+=v[i];}
                                    ^
0_0_36573470_13694.cpp:71:42: error: 'v' was not declared in this scope
     for(i=1;i<=n;i++){scanf("%lf",&w[i]);v[i]=w[i]*w[i]*h[i]/3;sum+=v[i];}
                                          ^
0_0_36573470_13694.cpp:71:57: error: 'h' was not declared in this scope
     for(i=1;i<=n;i++){scanf("%lf",&w[i]);v[i]=w[i]*w[i]*h[i]/3;sum+=v[i];}
                                                         ^


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-26 07:56:40, Gzip enabled