| Problem | binarysearch |
|---|---|
| User | calvinkulit |
| Submission Time | 2026-06-25 14:52:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<int>A(N);
| ^~~~~~
binarysearch.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
binarysearch.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
binarysearch.cpp:8:9: note: in expansion of macro ‘int’
8 | vector<int>A(N);
| ^~~
binarysearch.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
binarysearch.cpp:9:9: note: in expansion of macro ‘int’
9 | vector<int>queries(Q);
| ^~~
binarysearch.cpp:11:10: error: ‘A’ was not declared in this scope
11 | cin