The first sentence isn't very clear to me. A warning is usually a verbal or written notice that some has done something wrong, but does not have any actual consequences. Giving someone a penalty would actually have consequences (such as a fine, detention, loss of privileges). So as someone from the US, I would expect someone to either get a warning, or get a penalty.
The last two sentences are correct