Problem convention
User Henries
Submission Time 2024-10-28 10:34:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

convention.cpp: In function ‘long long int bsearch(std::vector<long long int>)’:
convention.cpp:9:16: error: expected ‘)’ before ‘void’
9 | if (cows[mid]
| ~ ^
| )
10 | void solve(vector<long long> cows, long long c){
| ~~~~
convention.cpp:42:1: error: expected statement at end of input
42 | }
| ^
convention.cpp:42:1: error: expected ‘}’ at end of input
convention.cpp:7:15: note: to match this ‘{’
7 | while(lb<=ub){
| ^
convention.cpp:42:1: error: expected ‘}’ at end of input
42 | }
| ^
convention.cpp:3:42: note: to match this ‘{’
3 | long long bsearch(vector<long long> cows){
| ^