move calcScoreRow & friends into else block.

They are only relevant when compilation failed, because that's
when judging a solution is done; otherwise it will continue with
running testcases.