Ah, the discrepancies between compilers! Microsoft's compiler would happily compile your code but gcc is more conforming to the standard. The Fix:
Code:
template <typename Container>
void displaySet(const Container & input)
{
    typename Container::const_iterator iElement;
}