Problem medianheap
User j0ashhh
Submission Time 2026-02-11 09:49:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianheap.cpp: In function ‘int main()’:
medianheap.cpp:11:10: error: could not convert ‘cmd.std::__cxx11::basic_string<char>::operator=(((const char*)"PUSH"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
11 | if(cmd = "PUSH"){
| ~~~~^~~~~~~~
| |
| std::__cxx11::basic_string<char>
medianheap.cpp:12:23: error: ‘x’ was not declared in this scope
12 | if(left.empty() || x <= left.top()){
| ^