#include <iostream> using namespace std; int main() { int x; cin >> x; // Write your dynamic allocation code here int * heapint = new int; *heapint = x; cout << *heapint << endl; delete heapint; return 0; }