Kód: Vybrať všetko
binary& binary::operator+=(const binary &int){
string x = convertToStr(int);
res = sum(res, x);
return *this;
}
Kód: Vybrať všetko
main.cpp:179:37: error: invalid initialization of reference of type ‘std::string& {aka std::basic_string<char>&}’ from expression of type ‘const CBigInt’
res = sum(res, input);
^
main.cpp:179:30: error: cannot convert ‘const CBigInt’ to ‘int’ for argument ‘1’ to ‘std::string converToStr(int)’
string x = convertToStr(input);
Neviete mi niekto pomoct, co mam zle? Dakujem voperd.