Problem squidzofrenzic
User hackerman123
Submission Time 2023-03-16 16:26:49
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)’:
squidzofrenzic.cpp:14:2: error: expected ‘,’ or ‘;’ before ‘while’
14 | while (index<v.size()){
| ^~~~~
squidzofrenzic.cpp:23:7: error: ‘n_inter’ was not declared in this scope; did you mean ‘n_iter’?
23 | if (n_inter > n){
| ^~~~~~~
| n_iter
squidzofrenzic.cpp:29:14: error: ‘n_inter’ was not declared in this scope; did you mean ‘n_iter’?
29 | if (n_inter > n){
| ^~~~~~~
| n_iter
squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:47:43: error: no matching function for call to ‘binary_search(int, long long int&, std::vector<long long int>::size_type, long long int&)’
47 | cout << binary_search(0, sum, v.size(), n);
| ^
squidzofrenzic.cpp:6:5: note: candidate: ‘int binary_search(l