0_0_24600590_2986.cpp: In function 'int main()':
0_0_24600590_2986.cpp:139:40: error: call of overloaded 'to_string(int&)' is ambiguous
string ss=to_string(num);
^
0_0_24600590_2986.cpp:139:40: note: candidates are:
0_0_24600590_2986.cpp:61:8: note: std::string to_string(int)
string to_string(int n){
^
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_24600590_2986.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)
^
|