Polynom Polynom::operator*(const Polynom & poly) const { Polynom res; for (int i = 0; i <= Power() + poly.Power(); ++i) { for (int j = 0; j <= i; ++j) { res.SetCoef(i, res[i] + (*this)[j] * poly[i - j]); } } return res; }