0_0_36136830_2502.cpp: In function 'int main()': 0_0_36136830_2502.cpp:14:46: error: 'max' was not declared in this scope dp[j] = max(dp[j],dp[j-cost[i]] + cost[i]); ^