Beginner ATM Problem,Why is it wrong?

#include
#include

using namespace std;
int main()
{
int w;
float b;
cin>>b;
cin>>w;

cout<<fixed<<setprecision(2);

if((w<=b-0.5)&&(w%5==0))
 {
       cout<<(b-w)-0.5;
}
else
{
cout<<b;
}
return 0;

}

order of input should be cin>>w ; cin>>b ; and not opposite. This is one of the errors.

Extra advice : share links of the codes and not a whole text on the forum…