fork download
  1. #include <iostream>
  2. #include <mpi.h>
  3.  
  4. int main(int argc, char** argv) {
  5. // Initialisation
  6.  
  7. // Reading size and rank
  8.  
  9. // Printing
  10. std::cout << "Hello world, from process #" ;
  11.  
  12. // Finalisation
  13.  
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout #stderr 0.25s 39028KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: unexpected symbol in "int main"
Execution halted