| Problem | binarysearch |
|---|---|
| User | SankaSreenidh |
| Submission Time | 2026-06-25 15:05:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘void solve()’:
binarysearch.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> n >> q;
| ^~~
binarysearch.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<int> a(n);
| ^~~~~~
binarysearch.cpp:5:12: error: expected primary-expression before ‘int’
5 | vector<int> a(n);
| ^~~
binarysearch.cpp:7:16: error: ‘a’ was not declared in this scope
7 | cin >> a[i];
| ^
binarysearch.cpp:11:10: error: ‘a’ was not declared in this scope
11 | sort(a.begin(), a.end());
| ^
binarysearch.cpp:11:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
11 | sort(a.begin(), a.end());
| ^~~~
| short
binarysearch.cpp:23:16: error: ‘arr’ was not declared in this scope
23 | if(arr[mid] >