For simplicity we can suppose the neighborhoods U1,...,Uk are all open. So W=M-U1-...-Uk is closed, so W is compact as a closed subset of a compact space M. So f(W) is compact. Again, since N as a manifold is Hausdorff, so f(W) is closed.

So V is open, and it's easy to verify that y belongs to V.