Problem binarysearch
User abdullahmazlan13
Submission Time 2026-06-25 15:45:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:6:10: error: ‘A’ was not declared in this scope
6 | vector {A,A,A,A}
| ^
binarysearch.cpp:6:17: error: class template argument deduction failed:
6 | vector {A,A,A,A}
| ^
binarysearch.cpp:6:17: error: no matching function for call to ‘vector()’
In file included from /usr/include/c++/9/vector:67,
from binarysearch.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:1872:5: note: candidate: ‘template<class _InputIterator, class _ValT, class _Allocator, class, class> std::vector(_InputIterator, _InputIterator, _Allocator)-> std::vector<_ValT, _Allocator>’
1872 | vector(_InputIterator, _InputIterator, _Allocator = _Allocator())
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:1872:5: note: template argument deduction/substitution failed:
binarysearch.cpp:6:17: note: candidate expects 3 arguments, 0 provi