Int main()
{
int
*array_X,
*array_Y,
numOfEl,
border_C,
prevNum;
cout << "Input N: ";<br> cin >> numOfEl;
array_X = new int[numOfEl];
array_Y = new int[numOfEl / 2];
cout << "Input C: ";<br> cin >> border_C;
for (int i = 0; i < numOfEl; i++)
cin >> array_X[i];
prevNum = border_C;
for (int i = 0, j = 0; i < numOfEl; i += 2)
if (array_X[i] < border_C && array_X[i] != prevNum)
array_Y[j++] = prevNum = array_X[i];
cout << endl;<br> for (int i = 0; i < numOfEl; i++)
cout << array_X[i] << "; ";<br>
cout << endl;<br> for (int i = 0; i < numOfEl / 2; i++)
cout << array_Y[i] << "; ";<br>
system("pause");
return 0;
} /* End of the 'main' function */