Problem | arrayfind |
---|---|
User | yc |
Submission Time | 2025-06-02 09:28:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:14:45: error: request for member ‘begin’ in ‘x’, which is of non-class type ‘int [L]’
14 | cout<<"Smaller: "<<lower_bound(x,x+L,q)-x.begin()<<", "<<"Greater: "<<x.end()-upper_bound(x,x+L,q);
| ^~~~~
arrayfind.cpp:14:75: error: request for member ‘end’ in ‘x’, which is of non-class type ‘int [L]’
14 | cout<<"Smaller: "<<lower_bound(x,x+L,q)-x.begin()<<", "<<"Greater: "<<x.end()-upper_bound(x,x+L,q);
| ^~~