Problem | lunchbox |
---|---|
User | ToiletBrIcker |
Submission Time | 2024-06-19 14:22:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:43: error: ‘greater’ was not declared in this scope; did you mean ‘std::greater’?
8 | std::priority_queue<int,std::vector<int>,greater<int>> Arr;
| ^~~~~~~
| std::greater
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from lunchbox.cpp:1:
/usr/include/c++/9/bits/stl_function.h:337:12: note: ‘