prog.c:3:17: error: mpi.h: No such file or directory
prog.c:7: warning: return type defaults to ‘int’
prog.c: In function ‘main’:
prog.c:16: error: ‘MPI_Status’ undeclared (first use in this function)
prog.c:16: error: (Each undeclared identifier is reported only once
prog.c:16: error: for each function it appears in.)
prog.c:16: error: expected ‘;’ before ‘istat’
prog.c:17: error: ‘MPI_Comm’ undeclared (first use in this function)
prog.c:17: error: expected ‘;’ before ‘comm’
prog.c:20: warning: implicit declaration of function ‘MPI_Init’
prog.c:21: warning: implicit declaration of function ‘MPI_Comm_size’
prog.c:21: error: ‘MPI_COMM_WORLD’ undeclared (first use in this function)
prog.c:22: warning: implicit declaration of function ‘MPI_Comm_rank’
prog.c:23: error: ‘comm’ undeclared (first use in this function)
prog.c:25: warning: implicit declaration of function ‘startend’
prog.c:42: error: ‘MPI_PROC_NULL’ undeclared (first use in this function)
prog.c:58: warning: implicit declaration of function ‘MPI_Send’
prog.c:58: error: ‘MPI_DOUBLE’ undeclared (first use in this function)
prog.c:68: warning: implicit declaration of function ‘MPI_Recv’
prog.c:68: error: ‘istat’ undeclared (first use in this function)
prog.c:78: warning: implicit declaration of function ‘MPI_Sendrecv’
prog.c:94: error: ‘icomm’ undeclared (first use in this function)
prog.c:103: warning: implicit declaration of function ‘MPI_Allreduce’
prog.c:103: error: ‘MPI_MAX’ undeclared (first use in this function)
prog.c:112: warning: implicit declaration of function ‘MPI_Finalize’
prog.c:11: warning: unused variable ‘k’
prog.c:11: warning: unused variable ‘j’
prog.c:49: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
prog.c:50: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
prog.c:51: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result