I have tried to use this implementation of the convex hull
but the LeetCode compiler complained about the improper use of the qsort() function.
I tested the code on repl.it and it worked smoothly. Any idea what the issue might be here?
It'd be better if you could publish error message out here.
Line 101: invalid use of non-static member function 'int Solution::compare(const void*, const void*)'
At first it complains about line 38 that lacks a return statement. If I give it a dummy return 1 or change it to void that results in the above error message.
Try to add static before compare function just as it said.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.