Problem torturingaccountant
User ZRDI
Submission Time 2024-01-19 15:22:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

torturingaccountant.cpp: In function ‘int main()’:
torturingaccountant.cpp:18:37: error: expression list treated as compound expression in functional cast [-fpermissive]
18 | ans = max(int(ceil(a/p), ans));
| ^
torturingaccountant.cpp:18:38: error: no matching function for call to ‘max(int)’
18 | ans = max(int(ceil(a/p), ans));
| ^
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 torturingaccountant.cpp:2:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: template argumen