| Problem | descsort |
|---|---|
| User | R9q5P8 |
| Submission Time | 2025-10-25 18:07:24 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:13:13: error: found ‘:’ in nested-name-specifier, expected ‘::’
13 | for (&item : items)
| ^
| ::
descsort.cpp:13:8: error: ‘item’ has not been declared
13 | for (&item : items)
| ^~~~
descsort.cpp:16:6: error: could not convert ‘std::sort<std::reverse_iterator<__gnu_cxx::__normal_iterator<int*, std::vector<int> > > >(std::vector<_Tp, _Alloc>::rbegin() [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reverse_iterator = std::reverse_iterator<__gnu_cxx::__normal_iterator<int*, std::vector<int> > >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*](), std::vector<_Tp, _Alloc>::rend() [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reverse_iterator = std::reverse_iterator<__gnu_cxx::__normal_iterator<int*, std::vec