0_0_13987994_31483.cpp: In function 'int main()': 0_0_13987994_31483.cpp:23:7: error: expected ';' before 'if' if(dp[i]>max1){max1=dp[i];} ^