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_28322350_22997.cpp: In function 'int main()':
0_0_28322350_22997.cpp:12:3: error: 'f' was not declared in this scope
   f[i]=1;//初始化 
   ^
0_0_28322350_22997.cpp:21:5: error: 'f' was not declared in this scope
     f[j]=min(f[j],f[j-w[i]]*v[i]);//失败率越小越好 
     ^
0_0_28322350_22997.cpp:24:25: error: 'f' was not declared in this scope
   printf("%.1lf%%\n",(1-f[c])*100);
                         ^


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-20 08:24:43, Gzip enabled