ATM problem. please let me know what is problem in my code

#include
using namespace std;

int main() {
// your code goes here
int x;
float y;
cin>>x;
cin>>y;
if(x<(y-0.5)&&(x%5)==0)
{
y=y-x-0.5;
cout<<y;
}
else
cout<<y;
return 0;
}

Try
if(x <= (y - 0.5) && x % 5 == 0)

Try using
float x;
Also, you missed curly brackets before and after else statement.

Not needed.

Not needed.