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_36573086_1892.cpp:28:23: error: expected initializer before 'v'
 double h[MAXN],w[MAXN]v[MAXN];
                       ^
0_0_36573086_1892.cpp: In function 'double qsum(double)':
0_0_36573086_1892.cpp:35:18: error: 'v' was not declared in this scope
             now+=v[i]*pow((h[i]-line)/h[i],3)
                  ^
0_0_36573086_1892.cpp: In function 'int solve()':
0_0_36573086_1892.cpp:42:30: error: 'w' was not declared in this scope
     for(int i=0;i<n;i++)cin>>w[i];
                              ^
0_0_36573086_1892.cpp:45:9: error: 'v' was not declared in this scope
         v[i]=h[i]*w[i]*w[i]/3;
         ^
0_0_36573086_1892.cpp:45:19: error: 'w' was not declared in this scope
         v[i]=h[i]*w[i]*w[i]/3;
                   ^


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 00:05:35, Gzip enabled