#include #include "Rational.h" using namespace std; int main() { Rational a, b, c, D, x1, x2; cout << "smth" << endl; a = Rational(1.0 / 1); b = Rational(-62.0 / 133); c = Rational(-51.0 / 133); cout << "sqrt" << endl; D = ((b*b) - a * 4 * c).sqrt(); cout << "there is problem?" << endl; x1 = ((-b - D) / (a * 2)); x2 = ((-b + D) / (a * 2)); cout << (double)x1 << endl; cout << (double)x2 << endl; }