Problem segmenttree2
User ZhongDing
Submission Time 2024-03-01 00:14:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp: In function ‘int main()’:
segmenttree2.cpp:100:18: error: no matching function for call to ‘min(int, long long int&)’
100 | N = min(100000,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 segmenttree2.cpp:2:
/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:
segmenttree2.cpp:100:18: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’)
100 | N = min(100000,N);
| ^
In file included fr