#include <iostream>
using namespace std;
int main(){
int *dynArray; // pointer to the dynamically allocated array
int size; // array size
cout << "Enter number of integers: ";
cin >> size;
dynArray = new int [size];
cout << "Enter integers: ";
for(int i = 0; i < size; i++)
cin >> dynArray[i];
cout << "You Entered: ";
for(int i = 0; i < size; i++)
{
cout << dynArray[i] << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKXsKCmludCAqZHluQXJyYXk7IC8vIHBvaW50ZXIgdG8gdGhlIGR5bmFtaWNhbGx5IGFsbG9jYXRlZCBhcnJheQppbnQgc2l6ZTsgLy8gYXJyYXkgc2l6ZQoKY291dCA8PCAiRW50ZXIgbnVtYmVyIG9mIGludGVnZXJzOiAiOwpjaW4gPj4gc2l6ZTsKZHluQXJyYXkgPSBuZXcgaW50IFtzaXplXTsKCmNvdXQgPDwgIkVudGVyIGludGVnZXJzOiAiOwpmb3IoaW50IGkgPSAwOyBpIDwgc2l6ZTsgaSsrKQogICAgY2luID4+IGR5bkFycmF5W2ldOwoKY291dCA8PCAiWW91IEVudGVyZWQ6ICI7CmZvcihpbnQgaSA9IDA7IGkgPCBzaXplOyBpKyspCnsKY291dCA8PCBkeW5BcnJheVtpXSA8PCAiICI7Cn0KCnJldHVybiAwOwp9