0_0_30007211_1838.cpp: In function 'int main()': 0_0_30007211_1838.cpp:34:44: error: 'a' was not declared in this scope dp[j]=max(dp[j-1],ma[j-1])+a[j]; ^