#include using namespace std; int main() { int arr1[] = {8,2,6,4}; int size1 = 3; int arr2[] = {9,1,5,3,7}; int size2 = 4; int merged = [size1 + size2]; for (int i = 0 ; i < size1 ; i++) merged [i] = arr1[i]; for (int i = 0 ; i < size2 ; i++) merged[size1] = arr2[i]; std::sort(merged, merged + size1 + size2); for (int i = 0; i < size1 + +i) std::cout << merged[i} << " "; return 0; }