Problem | progression |
---|---|
User | PlayVoltz |
Submission Time | 2024-09-12 18:59:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
progression.cpp: In function ‘int32_t main()’:
progression.cpp:145:40: error: no matching function for call to ‘max(long long int)’
145 | else cout<<max(st->query(l+1, r).mx+1)<<"\n";
| ^
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 progression.cpp:4:
/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 argument deduction/substitution failed:
progression.cpp:145:40: note: candidate expects 2 arguments, 1 provided
145 | else cout<<max(st->query(l+1, r).mx+1)&l