| Problem | binarysearch |
|---|---|
| User | spambot696969 |
| Submission Time | 2026-06-25 14:57:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:17:23: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
17 | int left = 0; right = n-1; mid;
| ~~~~~~^~~~~
binarysearch.cpp:17:30: error: ‘mid’ was not declared in this scope
17 | int left = 0; right = n-1; mid;
| ^~~
binarysearch.cpp:18:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | while (left < right) {
| ^~~~~
binarysearch.cpp:19:28: error: invalid operands of types ‘std::ios_base& (*)(std::ios_base&)’ and ‘int’ to binary ‘operator/’
19 | int mid = (left + right)/2;
| ~~~~~~~~~~~~~~^~
| | |
| | int
| std::ios_base& (*)(std::ios_base&)
binarysearch.cpp:22:11: error: assignment of function ‘std::ios_base& s