The task needs to be parallelized using OpenMP .

Develop a program to find the product of all elements of the vector.

if you take 10,000 of any elements, then when multiplied, it either goes beyond the limits of long (double), or returns 0 when multiplying decimal fractions. And if you take 10 elements, then what is there to parallel))))

what do you propose to do? :)

  • Is not a fact. For example, 0.1 - 10 - 0.1 - 10 - ... :) - Harry
  • @Harry oo thanks))) as an option - Maxim Savelyev

0