Online C++ Compiler

#include <bits/stdc++.h> using namespace std; void divideArrOneWithTwo(int arr_one[], int arr_two[], int n, int m) { int arr_two_elements_product = 1; for (int i = 0; i < m; i++) { if (arr_two[i] != 0) { arr_two_elements_product = arr_two_elements_product * arr_two[i]; } } for (int i = 0; i < n; i++) { cout << floor(arr_one[i] / arr_two_elements_product) << " "; } cout << endl; } int main() { int arr_one[] = {32, 22, 4, 55, 6}, arr_two[] = {1, 2, 3}; divideArrOneWithTwo(arr_one, arr_two, 5, 3); return 0; }