The "operator<" error occurs when the overloaded comparison operator used in the sort() function for a vector is not defined properly or is missing. The sort() function needs to know how to compare the elements in the vector to be able to sort them. If the comparison operator is not properly overloaded, the function will be unable to compare the elements and sort the vector.
Asked: 2021-06-03 11:00:00 +0000
Seen: 12 times
Last updated: Feb 05 '22