Sorting challenge-Painter Problem

code: https://ide.codingblocks.com/s/112352
what is the error in the code?

@dvitiarora
Line No.50.
(ans * t) instead of (ans * 5)