Problem in flooring FLOORI4

Can someone please help me in finding the error in my code. I have been working on it for hours but couldn’t find any… http://www.codechef.com/viewsolution/5486679

//