What's wrong with my code?

Here is the link to my submission for the problem “BOLT” which was asked in the april long challenge.

problem code: BOLT
c++ solution link: CodeChef: Practical coding for everyone

I just applied the usual approach but am getting not accepted again and again.
pls help.

replace if(value<9.58) with if(value<=9.57). it will work

but why is that? shouldn’t it work both ways?

not working, pls help if you can

thanks a lot, now its accepted. thanks.