Problem bridge_apio15
User gelastropod
Submission Time 2025-11-14 14:41:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bridge_apio15.cpp: In function ‘int main()’:
bridge_apio15.cpp:32:65: error: no matching function for call to ‘min(std::vector<std::pair<long long int, long long int> >::size_type, long long unsigned int)’
32 | int j = min(vals.size() - 1, (vals.size() - i - 1) / 2 + i + 1);
| ^
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 bridge_apio15.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:
bridge_apio15.cpp:32:65: note: deduced conflicting