| Problem | lemonade |
|---|---|
| User | bachnguyen123 |
| Submission Time | 2025-12-07 13:26:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lemonade.cpp: In function ‘int main()’:
lemonade.cpp:25:75: error: expected ‘;’ before ‘}’ token
25 | if(t[i] <= j) dp[i][j] = min(dp[i][j], dp[i-1][j-t[i]] + c[i])
| ^
| ;
26 | }
| ~
lemonade.cpp:31:42: error: no matching function for call to ‘max(long long int&, int&)’
31 | if(dp[n][i] <= d) ans = max(ans,i)
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from lemonade.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp