| Problem | arrayfind |
|---|---|
| User | aribah |
| Submission Time | 2026-06-25 21:57:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:8:17: error: ‘n’ was not declared in this scope
8 | for(int i=0; i<n; i++){
| ^
arrayfind.cpp:17:56: error: ‘x’ was not declared in this scope
17 | cout <<"Smaller: "<<lower_bound(vec.begin(),vec.end(),x)-vec.begin()
| ^
arrayfind.cpp:18:18: error: ‘n’ was not declared in this scope
18 | <<", Greater: "<<n-(upper_bound(vec.begin(),vec.end(),x)-vec.begin())<<"\n";
| ^