You seem to be under the impression that the MPI_Init function will launch multiple processes for you. This is not the case. You have to run your program via the mpirun command, for example:
$ mpirun -np 4 a.out
and mpirun will interpret the "-np 4" for you and launch the four processes. As you started your process manually (from the IDE) you will only have that single processes running.