ATM 'Wrong answer'

Please let me know the problem in the following code

#include
#include

using namespace std;

int main()
{
int n,r;
float amt;
cin>>n>>amt;
r=n%10;

if(n<=2000&&amt<=2000&&n<=amt&&(r==0||r==5))
{
              if((n+0.50)<=amt)
              cout<<std::fixed<<std::setprecision(2)<<amt-(n+0.50);}
           
              else
              cout<<std::fixed<<std::setprecision(2)<<amt;
              
              return 0;
              
              }

Sorry. I found the mistake myself. Answer accepted now.

//