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