|
|
list[index] > list[index + 1]
Type of list[something] is emp. The compiler has no idea what you want to do with operator > were both arguments are emps. Either overload the operator or simply change that line to list[index].num > list[index + 1].num
.
|
|