the judge is saying this is wrong ! i can’t find the error. please help ! thanks.
http://www.codechef.com/viewsolution/3201220
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{int x;
float y;
cin>>x>>y;
if(x%5==0 && x<=(y-0.5))
y=y-x-0.50;
cout<<setprecision(2)<<y;
}