Problem | minimum |
---|---|
User | themadpotato |
Submission Time | 2023-01-13 16:07:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:12: error: invalid conversion from ‘int*’ to ‘size_t’ {aka ‘long unsigned int’} [-fpermissive]
6 | qsort(A, A+N);
| ~^~
| |
| int*
minimum.cpp:6:14: error: too few arguments to function ‘void qsort(void*, size_t, size_t, __compar_fn_t)’
6 | qsort(A, A+N);
| ^
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from minimum.cpp:1:
/usr/include/stdlib.h:830:13: note: declared here
830 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
| ^~~~~