fork download
  1. #include <iostream>
  2. #include <omp.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. #pragma omp parallel for
  8. {for(int i=0; i<10; i++){
  9. cout<<i<<' ';
  10. }}
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
0 1 2 3 4 5 6 7 8 9