0_0_35859598_17682.cpp: In function 'int main()': 0_0_35859598_17682.cpp:28:41: error: 's' was not declared in this scope dp[j][1]=max(dp[s][1],dp[s-cost-c][0]+v); ^