0_0_38151535_8317.cpp: In function 'std::string get2(char)':
0_0_38151535_8317.cpp:19:30: error: call of overloaded 'to_string(int)' is ambiguous
string n = to_string(x % 2);
^
0_0_38151535_8317.cpp:19:30: note: candidates are:
0_0_38151535_8317.cpp:5:8: note: std::string to_string(int)
string to_string(int x){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_38151535_8317.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2951:3: note: std::string std::to_string(long double)
to_string(long double __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2942:3: note: std::string std::to_string(double)
to_string(double __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2933:3: note: std::string std::to_string(float)
to_string(float __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2927:3: note: std::string std::to_string(long long unsigned int)
to_string(unsigned long long __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2921:3: note: std::string std::to_string(long long int)
to_string(long long __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2915:3: note: std::string std::to_string(long unsigned int)
to_string(unsigned long __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2910:3: note: std::string std::to_string(long int)
to_string(long __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2904:3: note: std::string std::to_string(unsigned int)
to_string(unsigned __val)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2899:3: note: std::string std::to_string(int)
to_string(int __val)
^
|