Problem | rollercoaster |
---|---|
User | DoubleShaurya |
Submission Time | 2025-09-07 11:09:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:29:8: error: ‘class std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ has no member named ‘clear’
29 | mins.clear();
| ^~~~~
rollercoaster.cpp:30:9: error: ‘class std::priority_queue<long long int>’ has no member named ‘clear’
30 | maxes.clear();
| ^~~~~
rollercoaster.cpp:34:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
34 | cout << ans << " ";
| ~~~~ ^~ ~~~
| | |
| | std::vector<long long 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,
from /usr/include/c++/9/complex:45,