#include <iostream>
#include <memory>
using namespace std;

class Variable
{
public:
	const int x;
	Variable(const int x) : x(x) {};
};

void create_variable(std::shared_ptr<Variable> &v)
{
	v = std::make_shared<Variable>(5);
}

int main() {
	std::shared_ptr<Variable> v;
	create_variable(v);
	std::cout << v->x << "\n";
	return 0;
}