Painter's problem

could anyone please resolve my error .
code --> https://ide.codingblocks.com/s/248721

I have edited your code… Try to submit it now…