Problem | descsort |
---|---|
User | shniaa10 |
Submission Time | 2024-06-19 09:56:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:14:20: error: invalid conversion from ‘long long int*’ to ‘size_t’ {aka ‘long unsigned int’} [-fpermissive]
14 | qsort(arr, arr + 5, greater<int>());
| ~~~~^~~
| |
| long long int*
descsort.cpp:14:25: error: cannot convert ‘std::greater<int>’ to ‘size_t’ {aka ‘long unsigned int’}
14 | qsort(arr, arr + 5, greater<int>());
| ^~~~~~~~~~~~~~
| |
| std::greater<int>
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/