Problem medianheap
User aj
Submission Time 2025-02-11 09:15:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianheap.cpp: In function ‘int main()’:
medianheap.cpp:44:13: error: expected ‘}’ at end of input
44 | continue;
| ^
medianheap.cpp:43:33: note: to match this ‘{’
43 | if (total_size ==0 ){
| ^
medianheap.cpp:44:13: error: expected ‘}’ at end of input
44 | continue;
| ^
medianheap.cpp:40:42: note: to match this ‘{’
40 | } else if (instruction == "POP") {
| ^
medianheap.cpp:44:13: error: expected ‘}’ at end of input
44 | continue;
| ^
medianheap.cpp:17:48: note: to match this ‘{’
17 | for (int i = 0; i < num_instructions; ++i) {
| ^
medianheap.cpp:44:13: error: expected ‘}’ at end of input
44 | continue;
| ^
medianheap.cpp:7:12: note: to match this ‘{