| Problem | binarysearch |
|---|---|
| User | stefiewefieslays |
| Submission Time | 2026-06-25 15:08:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:13:12: error: expected ‘;’ before ‘-’ token
13 | for (int i-0;i<n;i++) {
| ^
| ;
binarysearch.cpp:13:18: error: expected ‘)’ before ‘;’ token
13 | for (int i-0;i<n;i++) {
| ~ ^
| )
binarysearch.cpp:13:19: error: ‘i’ was not declared in this scope
13 | for (int i-0;i<n;i++) {
| ^
binarysearch.cpp:17:11: error: request for member ‘begin’ in ‘arr’, which is of non-class type ‘long long int [n]’
17 | sort(arr.begin(),arr.end());
| ^~~~~
binarysearch.cpp:17:23: error: request for member ‘end’ in ‘arr’, which is of non-class type ‘long long int [n]’
17 | sort(arr.begin(),arr.end());
| ^~~
binarysearch.cpp:21:23: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
21 | int left