| Problem | descsort |
|---|---|
| User | dfsssssssssfsdfdssgdfs |
| Submission Time | 2026-03-11 17:22:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:19:34: error: cannot convert ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ to ‘long long int’ in initialization
19 | long long maximum = max_element(num.begin(),num.end());
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
descsort.cpp:23:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
23 | 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.c