Problem | arrayfind |
---|---|
User | blob |
Submission Time | 2023-12-20 15:59:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:21:82: error: expected ‘)’ before ‘int’
21 | int smaller = (lower_bound(numbers.begin(), numbers.end(), x) - numbers.begin()
| ~ ^
| )
22 | int greater = L - (upper_bound (numbers.begin(), numbers.end(), x) - numbers.begin());
| ~~~
arrayfind.cpp:24:59: error: missing template arguments before ‘;’ token
24 | cout << "Smaller:" << smaller << ", Greater:" << greater;
| ^