Problem | arrayfind |
---|---|
User | Ski3r3n |
Submission Time | 2023-05-04 21:03:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int findTheAnswerLol(int, int, int, int*)’:
arrayfind.cpp:6:32: error: expected ‘;’ before ‘if’
6 | mid = (high + low) >> 1
| ^
| ;
7 | if (array[mid] > target) {
| ~~
arrayfind.cpp:11:9: error: ‘else’ without a previous ‘if’
11 | else if (array[mid] < target) {
| ^~~~