| Problem | descsort |
|---|---|
| User | dfsssssssssfsdfdssgdfs |
| Submission Time | 2026-03-11 17:14:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:18:23: error: ‘max_element’ was not declared in this scope
18 | long long maximum = max_element(num.begin(),num.end());
| ^~~~~~~~~~~
descsort.cpp:22:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
22 | cout << maxnum
| ~~~~ ^~ ~~~~~~
| | |
| | std::vector<long long int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from descsort.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [wit