fork download
  1. #include <iostream>
  2. #include <omp.h>
  3.  
  4. int main() {
  5. #pragma omp parallel num_threads(4)
  6. {
  7. #pragma omp for
  8. for (int i = 0; i < 1; ++i) {
  9. std::cout << "Hello, World!" << std::endl;
  10. }
  11. }
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Hello, World!