Close but no cigar

Photo of a hand holding a cigar
Close, but no cigar originated from carnivals where a cigar was the prize for winning a game of skill. If you lost, they would say "close, but no cigar!" and it grew to be a phrase that meant coming very close to something, but not quite reaching the goal.

She got 99/100 on the test. Close, but no cigar!