Here are 2 functions I wrote where I think the problem is:
template <typename T>
typename list<T>::iterator maxIter(typename list<T>::iterator first,typename list<T>::iterator last)
{
list<T>::iterator max = first;
while(first != last)
{
if (*first > *max)
max = first;
first++;
}
return max...