I have to prove this only in basic ring theory, I have read something in category theory, but its too complex for me at the moment.
The definition of epimorphism that I have is that the function can cancel other functions by the right side, i.e. let $f:X\to Y; g_1,g_2:Y\to Z$ if $g_1\circ f=g_2\circ f \Rightarrow g_1=g_2$.
By the point of the course, we have already proof that any homomorphism is a monomorphism if and only if it is injective. Clearly, the inclusion function is mono (i.e. injective) but is not surjective. I need to prove that it isn't an epimorphism either.
I suspect that you mean the following. The embedding of $\mathbb{Z}$ into $\mathbb{Q}$ is mono and epi in the category of rings, but it's clearly not an isomorphism.