Mikroschema

Taškai: 0

Compile: FAIL

lmio_2004_3e2_mikroschema.cpp: In function ‘int main()’: lmio_2004_3e2_mikroschema.cpp:82:49: error: call of overloaded ‘to_string(int)’ is ambiguous graph.insert(make_pair("P"+to_string(i+1), Elementas(IN, str[i] == '1'))); ^ lmio_2004_3e2_mikroschema.cpp:52:8: note: candidate: std::__cxx11::string to_string(int) string to_string(int a) { ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from lmio_2004_3e2_mikroschema.cpp:1: /usr/include/c++/5/bits/basic_string.h:5351:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long double) to_string(long double __val) ^ /usr/include/c++/5/bits/basic_string.h:5342:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(double) to_string(double __val) ^ /usr/include/c++/5/bits/basic_string.h:5333:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(float) to_string(float __val) ^ /usr/include/c++/5/bits/basic_string.h:5327:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long long unsigned int) to_string(unsigned long long __val) ^ /usr/include/c++/5/bits/basic_string.h:5321:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long long int) to_string(long long __val) ^ /usr/include/c++/5/bits/basic_string.h:5315:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long unsigned int) to_string(unsigned long __val) ^ /usr/include/c++/5/bits/basic_string.h:5310:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long int) to_string(long __val) ^ /usr/include/c++/5/bits/basic_string.h:5304:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(unsigned int) to_string(unsigned __val) ^ /usr/include/c++/5/bits/basic_string.h:5299:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(int) to_string(int __val) ^ lmio_2004_3e2_mikroschema.cpp:96:46: error: call of overloaded ‘to_string(int)’ is ambiguous cout << calculate("G" + to_string(i+1)); ^ lmio_2004_3e2_mikroschema.cpp:52:8: note: candidate: std::__cxx11::string to_string(int) string to_string(int a) { ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from lmio_2004_3e2_mikroschema.cpp:1: /usr/include/c++/5/bits/basic_string.h:5351:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long double) to_string(long double __val) ^ /usr/include/c++/5/bits/basic_string.h:5342:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(double) to_string(double __val) ^ /usr/include/c++/5/bits/basic_string.h:5333:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(float) to_string(float __val) ^ /usr/include/c++/5/bits/basic_string.h:5327:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long long unsigned int) to_string(unsigned long long __val) ^ /usr/include/c++/5/bits/basic_string.h:5321:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long long int) to_string(long long __val) ^ /usr/include/c++/5/bits/basic_string.h:5315:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long unsigned int) to_string(unsigned long __val) ^ /usr/include/c++/5/bits/basic_string.h:5310:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long int) to_string(long __val) ^ /usr/include/c++/5/bits/basic_string.h:5304:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(unsigned int) to_string(unsigned __val) ^ /usr/include/c++/5/bits/basic_string.h:5299:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(int) to_string(int __val) ^

nr.resulttimemessage