| Problem | binarysearch |
|---|---|
| User | GODSLAYER |
| Submission Time | 2026-06-25 16:18:43 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:8:1: error: ‘vector’ was not declared in this scope
8 | vector<int>v(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 |
binarysearch.cpp:4:13: error: expected primary-expression before ‘long’
4 | #define int long long
| ^~~~
binarysearch.cpp:8:8: note: in expansion of macro ‘int’
8 | vector<int>v(N);
| ^~~
binarysearch.cpp:9:32: error: ‘v’ was not declared in this scope
9 | for(int i=0; i < N; i++)cin >> v[i];
| ^
binarysearch.cpp:10:6: error: ‘v’ was not declared in this scope
10 | sort(v.begin(),v.end());
| ^
binarysearch.cpp:10:1: error: ‘sort’ was not declared in this scope; did y