#include<stdio.h>
#include<stdlib.h>
int main()
{
const int n = 20;
int *mas;
mas = new int [n];
for(int i=0;i<n;i++)
{ *(mas+i)=rand()%100+1;
printf("%d ", *(mas+i)); //выводит содержимое массива
}
printf("\n");
delete[ ]mas;
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CgppbnQgbWFpbigpIAp7IAogCWNvbnN0IGludCBuID0gMjA7ICAgICAgICAgICAgICAgIAoJaW50ICptYXM7CQkJCQkJCgltYXMgPSBuZXcgaW50IFtuXTsgICAgICAgICAgICAgIAogICAKZm9yKGludCBpPTA7aTxuO2krKykJICAgICAgICAJCnsJKihtYXMraSk9cmFuZCgpJTEwMCsxOwkKICAgICAgICAgICAgICAgICAgICAgIAoJcHJpbnRmKCIlZCAiLCAqKG1hcytpKSk7ICAgLy/QstGL0LLQvtC00LjRgiDRgdC+0LTQtdGA0LbQuNC80L7QtSDQvNCw0YHRgdC40LLQsCAKCn0KcHJpbnRmKCJcbiIpOwpkZWxldGVbIF1tYXM7ICAgICAgIAoJcmV0dXJuIDA7IAogCiB9