For this Question: Check if given two number are in golden ratio.

Two numbers are said to be in the golden ratio if their ratio is the same as the ratio of the sum of the two numbers to the larger number . If A>B>0 then A and B are in golden ratio if
<b> A+B / A = A/B = 1.618 </b>

<b>Note</b> : precision is important here .The first line of the input contains a single floating number (A).
The second line of the input contains a single floating number (B).

<b>Constraints</b>
1 &le; A, B &le; 500Print Yes if two numbers form a golden ratio, otherwise No.Sample Input
1
0.618
Sample Output
Yes

Sample Input
61.77
38.22
Sample Output
No, I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;

bool checkGoldenRatio(float a, float b)
{
    if (a <= b)
    {
        float temp = a;
        a = b;
        b = temp;
    }

    std::stringstream ratio1;
    ratio1 << std ::fixed << std ::setprecision(3) << (a / b);

    std::stringstream ratio2;
    ratio2 << std ::fixed << std ::setprecision(3) << (a + b) / a;

    if ((ratio1.str() == ratio2.str()) &&
        ratio1.str() == "1.618")
    {
        cout << "Yes" << endl;
        return true;
    }
    else
    {
        cout << "No" << endl;
        return false;
    }
}

int main()
{
    float a,b;
    cin>>a>>b;
    checkGoldenRatio(a, b);

    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?