| Problem | binarysearch |
|---|---|
| User | notachicken |
| Submission Time | 2026-07-03 14:17:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp:3:10: error: ‘maxn’ was not declared in this scope
3 | int N, a[maxn + 5];
| ^~~~
binarysearch.cpp: In function ‘bool bs(int)’:
binarysearch.cpp:5:16: error: ‘r’ was not declared in this scope
5 | int l = 1; r = N;
| ^
binarysearch.cpp:12:11: error: ‘else’ without a previous ‘if’
12 | } else if (a[mid] < x) {
| ^~~~
binarysearch.cpp:12:20: error: ‘a’ was not declared in this scope
12 | } else if (a[mid] < 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;
| ^