| Problem | binarysearch |
|---|---|
| User | notachicken |
| Submission Time | 2026-07-03 14:16:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp:4:1: error: expected initializer before ‘bool’
4 | bool bs(int x) {
| ^~~~
binarysearch.cpp: In function ‘int bsmax()’:
binarysearch.cpp:23:5: error: ‘l’ was not declared in this scope
23 | l = 1; r = N;
| ^
binarysearch.cpp:23:12: error: ‘r’ was not declared in this scope
23 | l = 1; r = N;
| ^
binarysearch.cpp:25:9: error: ‘mid’ was not declared in this scope
25 | mid = (l + r) / 2;
| ^~~
binarysearch.cpp:26:13: error: ‘check’ was not declared in this scope
26 | if (check(mid)) r = mid - 1;
| ^~~~~
binarysearch.cpp: In function ‘bool check(int)’:
binarysearch.cpp:33:26: error: expected ‘;’ before ‘}’ token
33 | return (4 * mid >= N)
| ^
| ;
34 | }
| ~