Problem squidzofrenzic
User hackerman123
Submission Time 2023-03-15 16:16:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squidzofrenzic.cpp: In function ‘int binary_search(long long int, long long int, int, int)’:
squidzofrenzic.cpp:24:2: error: expected ‘,’ or ‘;’ before ‘for’
24 | for (int i = last_index; i < size; i++){
| ^~~
squidzofrenzic.cpp:24:27: error: ‘i’ was not declared in this scope
24 | for (int i = last_index; i < size; i++){
| ^
squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:40:32: error: expected ‘;’ before ‘v’
40 | long long input; cin >> input
| ^
| ;
41 | v[i] = input;
| ~