The warning and errors you receive should be pretty concise as to where the errors are occurring, so I suggest you read them carefully. Just by glancing at the code there are a couple obvious ones,...