#include <iostream> using namespace std; int main() { int x; cin >> x; int *input = new int(x); cout << *input; delete input; // Write your dynamic allocation code here return 0; }
Test Cases
Test Results
Input
42
Expected Output