| Problem | binarysearch |
|---|---|
| User | yuzhe |
| Submission Time | 2026-06-25 14:36:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include bits/stdc++.h
| ^~~~
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:7:1: error: ‘cin’ was not declared in this scope
7 | cin >> n;
| ^~~
binarysearch.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #include bits/stdc++.h
binarysearch.cpp:8:1: error: ‘vector’ was not declared in this scope
8 | vector<int> vec(n);
| ^~~~~~
binarysearch.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | #include bits/stdc++.h
binarysearch.cpp:8:8: error: expected primary-expression before ‘int’
8 | vector<int> vec(n);
| ^~~
binarysearch.cpp:10:12: error: ‘vec’ was not