Can any one tell me my mistake in the following soln for ATM question

#include
#include<bits/stdc++.h>
using namespace std;
int main()
{
int wi;
float bal;
cin>>wi;
cin>>bal;
if(wi%5==0 && wi<=bal)
{
bal=bal-wi-0.5;
cout<<fixed<<setprecision(2)<<bal;
}
else
cout<<fixed<<setprecision(2)<<bal;
}

well, first there is an option to include code it has a picture like 101010, hightlight your code and click it
alright, let's get to the problem
what if the input is
80 80
?
in your code, it would result in the balance becoming -0.5, which is just wrong

bruh, I just checked your latest submission, the problem where the balance can be negative is still present