I have a error with sort algorithm of c++:
I don't know where my mistake is. Help me please.Code:struct point{ //define point
}
bool cmp(point a, point b){ //some line of code
}
typedef vector<point> polygon;
polygon Convex_hull(polygon&p){
sort(p.begin,p.end,cmp); //error here: NO MATCHING FUNCTION
thanks :)