Problem | arrayfind |
---|---|
User | blob |
Submission Time | 2023-12-20 15:58:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:9:19: error: no match for call to ‘(std::vector<int>) (int&)’
9 | cin >> numbers(i);
| ^
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:57: error: missing template arguments before ‘;’ token
24 | cout << "Smaller:" << smaller << "Greater:" << greater;
| ^