Problem justright
User Henries
Submission Time 2024-10-07 10:08:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

justright.cpp: In function ‘long long int calc(std::vector<long long int>, long long int, long long int)’:
justright.cpp:7:1: error: expected ‘(’ before ‘void’
7 | void bin_search(vector<long long> v, long long k){
| ^~~~
| (
justright.cpp:7:50: error: a function-definition is not allowed here before ‘{’ token
7 | void bin_search(vector<long long> v, long long k){
| ^
justright.cpp:7:50: error: expected ‘;’ before ‘{’ token
7 | void bin_search(vector<long long> v, long long k){
| ^
| ;
justright.cpp:7:50: error: expected primary-expression before ‘{’ token
justright.cpp:7:50: error: expected ‘;’ before ‘{’ token
7 | void bin_search(vector<long long> v, long long k){
|