This problem is just a matter of the types of "intarray" and "begllts and endllts". If they are of the same type (or compatible types), then you need to show the definition of those types. If they are the same and are primitive types like "int", then there is something wrong. Most likely, the types are not built-in types and you didn't provide an overload for the < > operators. Normally, a custom type would need to provide the compiler with a method to compare them (if you want to compare them and if it makes sense to do so), for example:
struct MyIntType {
int value;
bool operator < (const MyIntType& rhs) const {
return value < rhs.value;
};
bool operator > (const MyIntType& rhs) const {
return value > rhs.value;
};
};
In the above, the definitions of operators < > will tell the compiler how to handle less-than or greater-than comparisons between variables of type "MyIntType".