DESCRIPTION

The max_element algorithm returns an iterator that denotes
the maximum element in a sequence. If the sequence contains
more than one copy of the element, the iterator points to
its first occurrence. The optional argument comp defines a
comparison function that can be used in place of the default
operator<.
Algorithm max_element returns the first iterator i in the
range [first, last) such that for any iterator j in the same
range the following corresponding conditions hold:
!(*i < *j)
or
comp(*i, *j) == false.

WARNINGS

If your compiler does not support default template parame-
ters, then you always need to supply the Allocator template
argument. For instance, you have to write:
vector<int,allocator<int> >
instead of:
vector<int>
If your compiler does not support namespaces, then you do
not need the using declaration for std.