Problem deforestation
User Henries
Submission Time 2024-10-22 21:41:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deforestation.cpp: In function ‘long long int bin_search(std::vector<std::pair<long long int, long long int> >, long long int)’:
deforestation.cpp:7:1: error: expected primary-expression before ‘void’
7 | void solve(vector<pair<long long,long long>> v){
| ^~~~
deforestation.cpp:6:15: error: expected ‘)’ before ‘void’
6 | if (target ==
| ~ ^
| )
7 | void solve(vector<pair<long long,long long>> v){
| ~~~~
deforestation.cpp:19:2: error: expected statement at end of input
19 | }
| ^
deforestation.cpp:19:2: error: expected ‘}’ at end of input
deforestation.cpp:3:75: note: to match this ‘{’
3 | long long bin_search(vector<pair<long long,long long>> v,long long target){
| ^