0_0_15429326_15764.cpp: In function 'int main()':
0_0_15429326_15764.cpp:30:82: error: 'max' was not declared in this scope
if(j >= a[i]) dp[j][l] = max(dp[j][l], dp[j - a[i]][l] + v[i]);
^
0_0_15429326_15764.cpp:31:80: error: 'max' was not declared in this scope
if(l) dp[j][l] = max(dp[j][l], dp[j - a[i]/2][l - 1] + v[i]);
^
|