Go easy, it's his/her first post and the code is at least a decent attempt.

Generally speaking, when your code fails to compile you receive compiler warnings. You may not be able to understand...