Run-Time Check Failure #3 - The variable 'y' is being used without being initialized. Учусь кодить на с++

Пишу программу для решения уравнения, две ветви работают как надо, но когда x>1.1 выдает это

Run-Time Check Failure #3 - The variable 'y' is being used without being initialized.
float x, a, b,y;
cout << "Введите x,a,b" << endl;
cin >> x >> a >> b;
if (x<-1.2)
      y=a*b*(x + x *x);
else
{
    if (x>1.1)
    y = (a + b)*tan(x);
    else
    {
        if (-1.2 <= x && x <= 1.1)
            y = (a - b) / (1 + x);
        cout << "2у равен " << y << endl;
        system("pause");
        return 0;
    }
    cout << "3y равен" << y << endl;
    system("pause");
    return 0;
}
cout << "1y равен" << y << endl;
system("pause");
return 0;
}

Ответы (0 шт):