• Source
    1. #include <iostream>
    2. #include <memory>
    3. using namespace std;
    4.  
    5. void fn(int*y){std::cout << *y;}
    6. int main() {
    7. auto x = std::make_unique<int>(4);
    8. fn(x.get());
    9. // your code goes here
    10. return 0;
    11. }