Yes, the code will compile. But it shouldn't execute without the error.

Can you show the code that returns a 0?