#include #include using namespace std; #define SIZE 100000000 int A[SIZE]; int main() { int sum = 0; #pragma omp parallel { int total_threads = omp_get_num_threads(); int myid = omp_get_thread_num(); if (myid == 0) cout << total_threads << " threads\n"; } #pragma omp parallel for for (int i=0; i