#include #include #include #define NUMTHREADs 2 using namespace std; int main() { stringstream ss[100]; int nprocs; #pragma omp parallel { int total_threads = omp_get_num_threads(); int myid = omp_get_thread_num(); if (myid == 0) nprocs = total_threads; ss[myid] << "Hello world, I am No." << myid << " out of " << total_threads << " Members\n"; } for (int i=0; i> a) cout << a << " "; cout << "\n"; } return 0; }