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