foo.cpp:152:1: error: expected unqualified-id before '?' token
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:66:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/algorithm:62,
from foo.cpp:5:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator_base_types.h: In instantiation of 'struct std::iterator_traits<int>':
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algo.h:5466:2: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = int]'
foo.cpp:33:15: required from here
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator_base_types.h:166:53: error: 'int' is not a class, struct, or union type
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator_base_types.h:167:53: error: 'int' is not a class, struct, or union type
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator_base_types.h:168:53: error: 'int' is not a class, struct, or union type
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator_base_types.h:169:53: error: 'int' is not a class, struct, or union type
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator_base_types.h:170:53: error: 'int' is not a class, struct, or union type