#include
#include
using namespace std;
int main() {
srand( time(0) );
int *mas = new int[100];
int even_c = 0, odd_c = 0;
for (int i = 0; i < 100; ++i) {
mas[i] = 1 + rand() % 100;
if (mas[i] % 2 == 0) even_c++; else odd_c++;
}
int *even = new int [even_c];
int *odd = new int [odd_c];
int temp = 0;
for (int i = 0; i < 100; ++i) {
if (mas[i] % 2 == 0) {even[temp] = mas[i]; temp++;}
}
temp = 0;
for (int i = 0; i < 100; ++i) {
if (mas[i] % 2 != 0) {odd[temp] = mas[i]; temp++;}
}
delete[] mas;
cout
for (int i = 0; i < even_c; ++i) {
cout
}
cout
for (int i = 0; i < odd_c; ++i) {
cout
}
}