foo.cpp: In function 'int main()':
foo.cpp:17:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
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/basic_string.h:1293:7: error: initializing argument 2 of 'std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::insert(std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int]' [-fpermissive]