Im trying the following function
vector getsmallest(int* arr, int size, int lessthan) { vector v; v.clear(); for (int i=0;i<