And is this the whole code? Or there is something else? If this is the all, then you are missing a lot of things and compiler must generate bunch of errors.