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_25714770_20556.cpp: In function 'int main()':
0_0_25714770_20556.cpp:8:36: error: 'a' was not declared in this scope
   for(int i=0;i<n;i++) scanf("%lf",a[i]),gl+=a[i];
                                    ^
0_0_25714770_20556.cpp:13:26: error: 'a' was not declared in this scope
     if(!(i&(1<<j))) sum+=a[j]*dp[i|(1<<j)],s+=a[j];
                          ^
0_0_25714770_20556.cpp:13:31: error: 'dp' was not declared in this scope
     if(!(i&(1<<j))) sum+=a[j]*dp[i|(1<<j)],s+=a[j];
                               ^


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-12-05 10:49:54, Gzip enabled