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;
^
|