| Problem | binarysearch |
|---|---|
| User | SankaSreenidh |
| Submission Time | 2026-06-25 15:04:06 |
| 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:6:5: error: ‘vector’ was not declared in this scope
6 | vector<int> a(n);
| ^~~~~~
binarysearch.cpp:6:12: error: expected primary-expression before ‘int’
6 | vector<int> a(n);
| ^~~
binarysearch.cpp:8:16: error: ‘a’ was not declared in this scope
8 | cin >> a[i];
| ^
binarysearch.cpp:12:10: error: ‘a’ was not declared in this scope
12 | sort(a.begin(), a.end());
| ^
binarysearch.cpp:12:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
12 | sort(a.begin(), a.end());
| ^~~~
| short
binarysearch.cpp:34:9: error: ‘cout’ was not declared in this scope
34 | cout << ans &l