So, you see, in mathematics your unconscious assumptions are sometimes wrong, and there's nothing that would tip this off to you, like a compiler. In fact, very few areas of mathematics are the sort where you can easily tell when you're wrong.
I suspect you think of your high school math classes when you think of mathematics. That's really a very poor representative. Mathematics is about proofs, not answers. To be fair, though, the original post makes a similar misconception. Computer programming : computer science :: high school math : mathematics.