Bug report: Notification for "your contribution is received" shows up incorrectly

After writing a contribution and submitting it, it will give notification “your contribution is received” even if it doesn’t enter the queue.

For example, the sample solution doesn’t run successfully and dies to an exception because of program error. In this case notification still shows.

Expected behaviour: Only show notification when it really is received.

Probably not high priority.