| Problem | arrayfind |
|---|---|
| User | Yuhmama |
| Submission Time | 2026-06-25 15:41:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:14:14: error: redeclaration of ‘std::vector<int> A’
14 | vector<int> A(Q);
| ^
arrayfind.cpp:7:14: note: ‘std::vector<int> A’ previously declared here
7 | vector<int> A(L);
| ^
arrayfind.cpp:16:10: error: ‘B’ was not declared in this scope
16 | cin >> B[i];
| ^
arrayfind.cpp:19:87: error: ‘n’ was not declared in this scope
19 | cout <<"Smaller: "<< lower_bound(A.begin(),A.end(),x)-A.begin() <<", Greater: "<<n-(upper_bound(A.begin(),A.end(),x)-A.begin())<<"\n";
| ^