Did you compile it?
Does it compile OK, or give you error messages?

Did you run it?
What did you type in? Does the answer look correct?

Being able to do these things are all part of the skills required.