fork download
  1. #include <mpi.h>
  2. #include <iostream>
  3. int main(int argc, char *argv[]) {
  4. MPI_Init(&argc, &argv);
  5. int rank;
  6. MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  7. std::cout << "Hello, World! from process " << rank << std::endl;
  8. MPI_Finalize();
  9. return 0;
  10. }
  11. # your code goes here
Success #stdin #stdout #stderr 0.26s 40864KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: unexpected symbol in "int main"
Execution halted