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_33198368_17075.cpp: In function 'int main()':
0_0_33198368_17075.cpp:8:18: error: 'N' was not declared in this scope
     int t, m0, m[N];
                  ^
0_0_33198368_17075.cpp:15:29: error: 'm' was not declared in this scope
             scanf("%d%lf", &m[i], &p[i]);
                             ^
0_0_33198368_17075.cpp:15:36: error: 'p' was not declared in this scope
             scanf("%d%lf", &m[i], &p[i]);
                                    ^
0_0_33198368_17075.cpp:18:16: error: 'ans' was not declared in this scope
         memset(ans, 0, sizeof(ans));
                ^
0_0_33198368_17075.cpp:21:35: error: 'm' was not declared in this scope
             for(int j = sum; j >= m[i]; j --){
                                   ^
0_0_33198368_17075.cpp:22:58: error: 'p' was not declared in this scope
                 ans[j] = max(ans[j], ans[j - m[i]] *(1 - p[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-09-29 08:19:57, Gzip enabled