#include <iostream>
using namespace std;
int modifyRef(int& A)
{
A = 0;
std::cout << "\nint& A = 0";
return A;
}
void TakeValues(int X, int Y)
{
std::cout << "\nX = " << X;
std::cout << "\nY = " << Y;
}
int main()
{
int Q = 9;
TakeValues(Q, modifyRef(Q));
std::cout << std::endl;
system("pause");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtb2RpZnlSZWYoaW50JiBBKQp7CglBID0gMDsKCXN0ZDo6Y291dCA8PCAiXG5pbnQmIEEgPSAwIjsKCXJldHVybiBBOwp9Cgp2b2lkIFRha2VWYWx1ZXMoaW50IFgsIGludCBZKQp7CglzdGQ6OmNvdXQgPDwgIlxuWCA9ICIgPDwgWDsKCXN0ZDo6Y291dCA8PCAiXG5ZID0gIiA8PCBZOwp9CgppbnQgbWFpbigpCnsKCWludCBRID0gOTsKCVRha2VWYWx1ZXMoUSwgbW9kaWZ5UmVmKFEpKTsKCXN0ZDo6Y291dCA8PCBzdGQ6OmVuZGw7CglzeXN0ZW0oInBhdXNlIik7CglyZXR1cm4gMDsKfQ==