| Problem | potatosalad |
|---|---|
| User | lxmine |
| Submission Time | 2026-05-30 20:32:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:7:35: error: ‘greater’ was not declared in this scope; did you mean ‘std::greater’?
7 | std::sort(xyz.begin(), xyz.end(),greater<int>());
| ^~~~~~~
| 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 potatosalad.cpp:1:
/usr/include/c++/9/bits/stl_function.h:337:12: note: ‘std::greater’ declared here