error: no match for ‘operator<‘ (operand types are ‘Interval‘ and ‘Interval‘)(sort函数出错(不能省略第三个参数))
struct Interval { int start; int end; Interval(int s, int e) : start(start), end(e) {}};void insertInterval(vector<Interval>& Intervals, Interval newInterval){ sort(Intervals.begin(),Intervals.end());}出现编译错误,无法用sort对