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_19507199_3261.cpp: In function 'int main()':
0_0_19507199_3261.cpp:18:12: error: invalid types 'int[int]' for array subscript
         f[0]=0;
            ^
0_0_19507199_3261.cpp:20:16: error: invalid types 'int[int]' for array subscript
             f[i]=30000000;
                ^
0_0_19507199_3261.cpp:23:20: error: invalid types 'int[int]' for array subscript
                 f[j]=max(f[j],f[j-w[i]]+p[i]);
                    ^
0_0_19507199_3261.cpp:23:29: error: invalid types 'int[int]' for array subscript
                 f[j]=max(f[j],f[j-w[i]]+p[i]);
                             ^
0_0_19507199_3261.cpp:23:39: error: invalid types 'int[int]' for array subscript
                 f[j]=max(f[j],f[j-w[i]]+p[i]);
                                       ^
0_0_19507199_3261.cpp:26:87: error: invalid types 'int[int]' for array subscript
         if(m!=30000000) cout<<"The minimum amount of money in the piggy-bank is "<<f[m]<<'.'<<endl;
                                                                                       ^


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-26 00:48:45, Gzip enabled