Problem | logs |
---|---|
User | polyda |
Submission Time | 2024-06-29 21:16:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
logs.cpp: In function ‘int main()’:
logs.cpp:44:39: error: no matching function for call to ‘binary_search(int, double, std::vector<int>&, int&, int)’
44 | cout << binary_search(0,2e16,d,n,n+m) << endl;
| ^
logs.cpp:22:11: note: candidate: ‘long long int binary_search(long long int, long long int, std::vector<int>&, int&, int&)’ <near match>
22 | long long binary_search(long long lo, long long hi, vector<int>& a, int&n, int&k){
| ^~~~~~~~~~~~~
logs.cpp:22:11: note: conversion of argument 5 would be ill-formed:
logs.cpp:44:37: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
44 | cout << binary_search(0,2e16,d,n,n+m) << endl;
| ~^~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc