#include <iostream>
using namespace std;
int main()
{
int a = 10;
/*
double &x = (double)a; // ERROR!
cout << x << endl;
*/
const double &x2 = (double)a; // OK!
cout << x2 << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBpbnQgYSA9IDEwOwoKICAgIC8qCiAgICBkb3VibGUgJnggPSAoZG91YmxlKWE7IC8vIEVSUk9SIQogICAgY291dCA8PCB4IDw8IGVuZGw7CgkqLwoKICAgIGNvbnN0IGRvdWJsZSAmeDIgPSAoZG91YmxlKWE7IC8vIE9LIQogICAgY291dCA8PCB4MiA8PCBlbmRsOwoKICAgIHJldHVybiAwOwp9