#include "mpi.h"
#include <unistd.h>

int main(int argc, char *argv[])
{
	int rank, size;

    MPI_Init(&argc, &argv);
    MPI_Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_RETURN); // return an exception instead of Fatal Error, which finishes execution of all processes.

    char   buf[10];
    MPI_Status  status;
    // MPI_Recv(buf, 10, MPI::CHAR, 0, 0, MPI_COMM_WORLD, &status);

    MPI_Finalize();

    return 0;
}






