| Problem | arrayfind |
|---|---|
| User | ethantanaki |
| Submission Time | 2026-11-16 09:52:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int32_t main()’:
arrayfind.cpp:16:23: error: ‘n’ was not declared in this scope
16 | int low = 0, high = n-1, mid, ans = -1;
| ^
arrayfind.cpp:18:4: error: ‘mid’ was not declared in this scope
18 | mid = (low+high)/2;
| ^~~
arrayfind.cpp:19:20: error: ‘x’ was not declared in this scope
19 | if (arr[mid] >= x){
| ^
arrayfind.cpp:20:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | ans = mid;
| ^~~
| abs
arrayfind.cpp:26:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
26 | cout<<ans;
| ^~~
| abs