Problem binarysearch
User OKay
Submission Time 2026-06-25 14:40:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp:3:2: error: invalid preprocessing directive #inlude; did you mean #include?
3 | #inlude <bits/stdc++.h>
| ^~~~~~
| include
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:8:1: error: ‘cin’ was not declared in this scope
8 | cin >> n >> q;
| ^~~
binarysearch.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | //binary search
binarysearch.cpp:9:1: error: ‘vector’ was not declared in this scope
9 | 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 | //binary search
binarysearch.cpp:5:13: error: expected primary-expression before ‘long’
5 | #define int long long
| ^~~~
binarysea