| Problem | binarysearch |
|---|---|
| User | Hihihihihi |
| Submission Time | 2026-06-25 15:09:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:15:19: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
15 | int left=0;right=n;mid;
| ~~~~~^~
binarysearch.cpp:15:22: error: ‘mid’ was not declared in this scope
15 | int left=0;right=n;mid;
| ^~~
binarysearch.cpp:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | while (left<right) {
| ^~~~~
binarysearch.cpp:17:20: error: invalid operands of types ‘std::ios_base& (*)(std::ios_base&)’ and ‘int’ to binary ‘operator/’
17 | mid=(left+right)/2;
| ~~~~~~~~~~~~^~
| | |
| | int
| std::ios_base& (*)(std::ios_base&)
binarysearch.cpp:27:2: error: expected ‘}’ at end of input
27 | }
| ^
binarysearch.cpp:5:15: note: to match this ‘{’
5