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