Help me in solving HS08TEST problem

My issue

My code

// We have populated the solutions for the 10 easiest problems for your support.
// Click on the SUBMIT button to make a submission to this problem.

#include <bits/stdc++.h>
#include <cmath>
#include<iomanip>
using namespace std;

int main()
{
    int a;
    float b;
    cin>>a;
    cin>>b;
    if(((b-(a+0.5)>=0) && (a%5==0))){
        cout<<setprecision(2)<<(b-(a+0.5))<<endl;
    }
    else{
        cout<<setprecision(2)<<b<<endl;
    }
    return 0;
}

Problem Link: HS08TEST Problem - CodeChef

@goyalsajal92
Just a little mistake u have to write fixed before setprecision
i have corrected it in your code.
include <bits/stdc++.h>
include
include
using namespace std;

int main()
{
int a;
float b;
cin>>a;
cin>>b;
if(((b-(a+0.5)>=0) && (a%5==0))){
cout<<fixed<<setprecision(2)<<(b-(a+0.5))<<endl;
}
else{
cout<<fixed<<setprecision(2)<<b<<endl;
}
return 0;
}