| Problem | binarysearch |
|---|---|
| User | dharshanmb |
| Submission Time | 2026-06-25 15:21:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:7:5: error: ‘cin’ was not declared in this scope
7 | cin >> n >> q ;
| ^~~
binarysearch.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int>a(n);
| ^~~~~~
binarysearch.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
binarysearch.cpp:8:12: note: in expansion of macro ‘int’
8 | vector<int>a(n);
| ^~~
binarysearch.cpp:10:11: error: ‘a’ was not declared in this scope
10 | cin >>a[i];
| ^
binarysearch.cpp:12:8: error: ‘a’ was not declared in this scope
12 | sort(a.begin(),a.end());
| ^
binarysearch.cpp:12:3: error: ‘sort’ was not declared in