0_0_14668445_12333.cpp: In function 'int main()': 0_0_14668445_12333.cpp:22:41: error: 'max' was not declared in this scope dp[j]=max(dp[j-k*p[i]]+k*w[i],dp[j]); ^