Problem | arrayfind |
---|---|
User | blob |
Submission Time | 2023-12-20 16:00:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:22:17: error: ‘L’ was not declared in this scope
22 | int greater = L - (upper_bound (numbers.begin(), numbers.end(), x) - numbers.begin());
| ^
arrayfind.cpp:24:67: error: expected ‘;’ before ‘return’
24 | cout << "Smaller:" << smaller << ", Greater:" << greater << "\n"
| ^
| ;
25 | return 0;
| ~~~~~~