| Problem | arrayfind |
|---|---|
| User | jaydenlol |
| Submission Time | 2026-06-25 16:40:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:12:24: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
12 | cin >> arr.at[i];
| ^
arrayfind.cpp:16:6: error: ‘class std::vector<long long int>’ has no member named ‘pushback’; did you mean ‘push_back’?
16 | arr.pushback(-1e10);
| ^~~~~~~~
| push_back
arrayfind.cpp:25:32: error: ‘first_b_search’ was not declared in this scope
25 | cout << "Smaller: " << first_b_search(arr, x) << ", Greater: " << n+1-second_b_search(arr, x) << "\n";
| ^~~~~~~~~~~~~~
arrayfind.cpp:25:79: error: ‘second_b_search’ was not declared in this scope
25 | cout << "Smaller: " << first_b_search(arr, x) << ", Greater: " << n+1-second_b_search(arr, x) << "\n";
|