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