Mikroschema

Taškai: 0

Compile: FAIL

lmio_2004_3e2_mikroschema.cpp: In function ‘int main()’: lmio_2004_3e2_mikroschema.cpp:96:55: error: call of overloaded ‘stoi(std::__cxx11::basic_string<char>)’ is ambiguous jungia[paverst(paem2[0])][stoi(paem2.substr(1))].jung.push_back(make_pair(paverst(paem1[0]), stoi(paem1.substr(1)))); ^ lmio_2004_3e2_mikroschema.cpp:38:5: note: candidate: int stoi(std::__cxx11::string) int stoi(string str){ ^ 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/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from lmio_2004_3e2_mikroschema.cpp:1: /usr/include/c++/5/bits/basic_string.h:5258:3: note: candidate: int std::__cxx11::stoi(const string&, std::size_t*, int) stoi(const string& __str, size_t* __idx = 0, int __base = 10) ^ lmio_2004_3e2_mikroschema.cpp:96:122: error: call of overloaded ‘stoi(std::__cxx11::basic_string<char>)’ is ambiguous jungia[paverst(paem2[0])][stoi(paem2.substr(1))].jung.push_back(make_pair(paverst(paem1[0]), stoi(paem1.substr(1)))); ^ lmio_2004_3e2_mikroschema.cpp:38:5: note: candidate: int stoi(std::__cxx11::string) int stoi(string str){ ^ 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/istream:38, from /usr/include/c++/5/sstream:38, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52, from lmio_2004_3e2_mikroschema.cpp:1: /usr/include/c++/5/bits/basic_string.h:5258:3: note: candidate: int std::__cxx11::stoi(const string&, std::size_t*, int) stoi(const string& __str, size_t* __idx = 0, int __base = 10) ^

nr.resulttimemessage