C++ (Qt)double sum = 0.0;#pragma omp parallel for shared(sum)for (int j = 0; j < N; j++) sum += а[j] * b[j];