0_0_25010137_28834.cpp: In function 'int main()': 0_0_25010137_28834.cpp:29:52: error: 'max' was not declared in this scope dp[j]=max(dp[j],dp[j-vol[i]]+val[i]); ^