Problem | medianheap |
---|---|
User | blob |
Submission Time | 2023-11-22 15:30:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianheap.cpp: In function ‘int main()’:
medianheap.cpp:22:16: error: ‘element’ was not declared in this scope; did you mean ‘elements’?
22 | auto z = *element.size()/2 ;
| ^~~~~~~
| elements
medianheap.cpp:26:31: error: ‘element’ was not declared in this scope; did you mean ‘elements’?
26 | auto z = *element.size()/2;
| ^~~~~~~
| elements
medianheap.cpp:31:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::multiset<int>’)
31 | cout << elements;
| ~~~~ ^~ ~~~~~~~~
| | |
| | std::multiset<int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,