Problem | nprime2 |
---|---|
User | akqxolotl |
Submission Time | 2024-04-02 12:30:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nprime2.cpp: In function ‘int main()’:
nprime2.cpp:9:27: error: no matching function for call to ‘binary_search(int [24], int*)’
9 | if(binary_search(a1,a1+24),n%147)==1){
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from nprime2.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:2252:5: note: candidate: ‘template<class _FIter, class _Tp> bool std::binary_search(_FIter, _FIter, const _Tp&)’
2252 | binary_search(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:2252:5: note: template argument deduction/substitution failed:
nprime2.cpp:9:27: note: candidate expects 3 arguments, 2 provided
9 | if(binary_search(a1,a1+24),n%147)==1){
| ^
In file included from /usr/include/c++/9/algorithm:62,