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