Prevet notices when there's no active contest.
Remove $cdatas global from submit solution.

The cid is passed in, so we don't need to depend on ugly globals to
get the info we need.