| Problem | descsort |
|---|---|
| User | Diddylan123 |
| Submission Time | 2026-11-10 11:18:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:17:39: error: ‘smaller’ was not declared in this scope
17 | sort(numbers.begin(), numbers.end(), smaller<int>());
| ^~~~~~~
descsort.cpp:17:47: error: expected primary-expression before ‘int’
17 | sort(numbers.begin(), numbers.end(), smaller<int>());
| ^~~
descsort.cpp:19:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
19 | cout << numbers;
| ~~~~ ^~ ~~~~~~~
| | |
| | std::vector<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,
from /usr/incl