0_0_19902951_21215.cpp: In function 'int main()': 0_0_19902951_21215.cpp:37:25: error: 'a' was not declared in this scope dp1[j]=max(dp1[j-1]+a[j], dp2[j-1]+a[j]); ^