?
#include <iostream>
#include <array>
#include <algorithm>
constexpr int n = 10;
int main() {
const std::array<int, n> a = {41, 85, 72, 38, 80, 69, 65, 68, 96, 22};
const std::array<int, n> b = {49, 67, 51, 61, 63 ,87 ,66 ,24 ,80 ,83};
std::array<int,n> c;
for (int i =0; i<n; i++){
c[i] = std::max(a[i], b[i]);
}
int max_val = *std::max_element(c.begin(), c.end());
std::fill(c.begin(), c.end(), max_val);
std::cout << "Array c: ";
for (auto i : c) {
std::cout << i << " ";
}
std::cout << std::endl;
return 0;
}