Don't view it like that. We all have to be beginners some time =P As you progress, you'll get better at locating silly mistakes like that because you'll have seen them before. And when in doubt, just read the compiler error carefully - at least until you start using templates (and probably some other advanced things...), the errors messages are often fairly helpful.