Problem mountains
User SB
Submission Time 2024-10-30 13:47:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountains.cpp: In function ‘int main()’:
mountains.cpp:14:5: error: ‘multiset’ was not declared in this scope
14 | multiset<int> left;
| ^~~~~~~~
mountains.cpp:2:1: note: ‘std::multiset’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
1 | #include <iostream>
+++ |+#include <set>
2 | using namespace std;
mountains.cpp:14:14: error: expected primary-expression before ‘int’
14 | multiset<int> left;
| ^~~
mountains.cpp:15:14: error: expected primary-expression before ‘int’
15 | multiset<int> right;
| ^~~
mountains.cpp:16:10: error: request for member ‘insert’ in ‘std::left’, which is of non-class type ‘std::ios_base&(std::ios_base&)’
16 | left.insert(H[0]);
| ^~~~~~
mountains.cpp:18:15: error: request for member ‘insert’ in ‘std::right’, which is of non-class type ‘std::ios_base&(s