| Problem | flamethrower |
|---|---|
| User | pearl333 |
| Submission Time | 2025-02-01 17:59:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:21:17: error: reference to ‘max’ is ambiguous
21 | if (current>=max) {
| ^~~
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from flamethrower.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:268:5: note: candidates are: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’
268 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
flamethrower.cpp:8:5: note: ‘long lon