fork download
  1. #include <mpi.h>
  2. #include <iostream>
  3. using namespace std;
  4. main(int argc, char **argv){
  5. cout << "Before MPI_Init" << endl;
  6. MPI_Init(&argc, &argv);
  7. cout << "Parallel section" << endl;
  8. MPI_Finalize(); cout << "After MPI_Finalize" << endl;
  9.  
  10. }
Success #stdin #stdout #stderr 0.27s 41020KB
stdin
public class q1{
  }
stdout
Standard output is empty
stderr
Error: unexpected symbol in "using namespace"
Execution halted