| Problem | tree_ioi24 |
|---|---|
| User | gelastropod |
| Submission Time | 2026-05-18 16:58:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
tree_ioi24.cpp: In function ‘long long int query(int, int)’:
tree_ioi24.cpp:50:36: error: no matching function for call to ‘min(long long int, int)’
50 | int f = min(N - 1, (R + L - 1) / L);
| ^
In file included from /usr/include/c++/9/vector:60,
from tree_ioi24.h:1,
from tree_ioi24.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
tree_ioi24.cpp:50:36: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
50 | int f = min(N - 1, (R + L - 1) / L);
| ^
In file included from /usr/include/c++/9/vector:60,
fro