Main.cc: In function ‘int main()’: Main.cc:14:4: error: expected ‘;’ before ‘dp’ dp[j]=max(dp[i-1][j],dp[i-1][j-a[i]]+p[i]); ^~