Problem rangedeleting
User Broompositive
Submission Time 2023-09-15 22:02:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rangedeleting.cpp: In function ‘bool removes(long long int, long long int, std::vector<long long int>, long long int)’:
rangedeleting.cpp:15:50: error: expected ‘;’ before ‘{’ token
15 | if (is_sorted(newvect.begin(), newvect.end()){
| ^
| ;
rangedeleting.cpp:18:2: error: expected primary-expression before ‘else’
18 | else return false;
| ^~~~
rangedeleting.cpp:17:3: error: expected ‘)’ before ‘else’
17 | }
| ^
| )
18 | else return false;
| ~~~~
rangedeleting.cpp:15:8: note: to match this ‘(’
15 | if (is_sorted(newvect.begin(), newvect.end()){
| ^