0_0_25864951_28366.cpp: In function 'int main()': 0_0_25864951_28366.cpp:89:38: error: 'a' was not declared in this scope dp[j]=max(dp[j],dp[j-a[i].co]+a[i].val); ^