Problem mountains
User WayneTech
Submission Time 2024-01-12 21:51:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountains.cpp: In function ‘int main()’:
mountains.cpp:20:26: error: ‘remove_if’ is not a member of ‘std’; did you mean ‘remove_cv’?
20 | list1.erase(std::remove_if(list1.begin(), list1.end(), [H, k](int i) { return i >= H[k]; }), list1.end());
| ^~~~~~~~~
| remove_cv
mountains.cpp:21:26: error: ‘remove_if’ is not a member of ‘std’; did you mean ‘remove_cv’?
21 | list2.erase(std::remove_if(list2.begin(), list2.end(), [H, k](int i) { return i >= H[k]; }), list2.end());
| ^~~~~~~~~
| remove_cv