0_0_14194400_3567.cpp:10:1: error: expected ',' or ';' before 'int'
int money[105] = {0};
^
0_0_14194400_3567.cpp: In function 'int main()':
0_0_14194400_3567.cpp:23:28: error: 'money' was not declared in this scope
scanf("%d%lf",&money[i],&Pj[i]);
^
0_0_14194400_3567.cpp:29:28: error: 'money' was not declared in this scope
for(j = lim;j>=money[i];j--)
^
0_0_14194400_3567.cpp:30:58: error: expected ']' before ')' token
dp[j] = max(dp[j],dp[j-money[i]*(1-Pj[i]));
^
0_0_14194400_3567.cpp:32:25: error: 'P' was not declared in this scope
if(dp[i]>(1-P)){
^
|