| Problem | potatosalad |
|---|---|
| User | notachicken |
| Submission Time | 2026-05-08 14:06:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:15:24: error: invalid conversion from ‘int*’ to ‘size_t’ {aka ‘long unsigned int’} [-fpermissive]
15 | qsort(a + 1, a + n + 1);
| ~~~~~~^~~
| |
| int*
potatosalad.cpp:15:27: error: too few arguments to function ‘void qsort(void*, size_t, size_t, __compar_fn_t)’
15 | qsort(a + 1, a + n + 1);
| ^
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/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38