Problem | medianheap |
---|---|
User | ChickenCoder |
Submission Time | 2023-08-11 17:37:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianheap.cpp: In function ‘int main()’:
medianheap.cpp:14:4: error: expected ‘;’ before ‘a’
14 | a.erase(--a.end());
| ^
medianheap.cpp:26:5: error: expected ‘;’ before ‘int’
26 | int rem = *a.rbegin();
| ^~~
medianheap.cpp:29:14: error: ‘rem’ was not declared in this scope; did you mean ‘drem’?
29 | b.insert(rem);
| ^~~
| drem
medianheap.cpp:34:5: error: expected ‘;’ before ‘int’
34 | int rem = *b.begin();
| ^~~
medianheap.cpp:36:14: error: ‘rem’ was not declared in this scope; did you mean ‘drem’?
36 | a.insert(rem);
| ^~~
| drem