0_0_16806565_25940.cpp: In function 'int main()': 0_0_16806565_25940.cpp:24:36: error: 'max' was not declared in this scope dp[j]=max(dp[j],dp[j-b[i]]+a[i]); ^