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];}
^
|