| Problem | binarysearch |
|---|---|
| User | dharshanmb |
| Submission Time | 2026-06-25 14:56:42 |
| 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:8:1: error: ‘cin’ was not declared in this scope
8 | cin >> n;
| ^~~
binarysearch.cpp:9:1: error: ‘vector’ was not declared in this scope
9 | vector<int> vec(n);
| ^~~~~~
binarysearch.cpp:9:8: error: expected primary-expression before ‘int’
9 | vector<int> vec(n);
| ^~~
binarysearch.cpp:11:12: error: ‘vec’ was not declared in this scope
11 | cin >> vec[i];
| ^~~
binarysearch.cpp:13:6: error: ‘vec’ was not declared in this scope
13 | sort(vec.begin(),vec.end());
| ^~~
binarysearch.cpp:13:1: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
13 | sort(vec.begin(),vec.end());
| ^~~~
| short
binarysearch.cpp:18:6: error: