Problem | arrayfind |
---|---|
User | blob |
Submission Time | 2023-12-20 15:57:47 |
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:12:25: error: ‘number’ was not declared in this scope; did you mean ‘numbers’?
12 | sort (numbers.begin(), number.end());
| ^~~~~~
| numbers
arrayfind.cpp:21:79: error: expected ‘)’ before ‘int’
21 | int smaller = (lower_bound(number.begin(), number.end(), x) - number.begin()
| ~ ^
| )
22 | int greater = L - (upper_bound number.begin(), number.end(), x) - number.begin());
| ~~~
arrayfind.cpp:24:57: error: missing template arguments