foo.cpp:12:10: error: redefinition of 'int s [101]'
foo.cpp:3:7: error: 'int s [101]' previously declared here
foo.cpp: In function 'int main()':
foo.cpp:17:25: error: 'memset' was not declared in this scope
foo.cpp:38:5: error: reference to 'max' is ambiguous
foo.cpp:13:5: error: candidates are: int max
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:254:5: error: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:210:5: error: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
foo.cpp:38:9: error: reference to 'max' is ambiguous
foo.cpp:13:5: error: candidates are: int max
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:254:5: error: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:210:5: error: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
foo.cpp:40:48: error: incompatible types in assignment of 'char [100]' to 'char [101]'
foo.cpp:49:11: error: reference to 'max' is ambiguous
foo.cpp:13:5: error: candidates are: int max
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:254:5: error: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:210:5: error: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)