| Problem | binarysearch |
|---|---|
| User | yq |
| Submission Time | 2026-06-26 09:33:13 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits.stdc++.h>
| ^~~~~~~
| include
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin>>n>>q;
| ^~~
binarysearch.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inlcude <bits.stdc++.h>
binarysearch.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int> a(n);
| ^~~~~~
binarysearch.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | #inlcude <bits.stdc++.h>
binarysearch.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int> a(n);