Relative Content

Tag Archive for c++std

Why when I compile my program does the compiler give me a collation error?

I have a piece in my program that compares the average distance from a group of points (the ‘Some_points’ structure). According to my idea, it takes a vector of such structures, and sorts them by the average distance from another point using std::sort and the comparator function. But the compiler constantly produces many errors (as I understand it, they are from the sort function itself).
If anything, I’m new to C++. I’m just trying to make 3D in the terminal.