ATM question!!

What is wrong in my code!!!It compiles fine but solution wrong!!
#include
using namespace std;
int checkit (float a)
{
float currentbal=5000.0,withdraw_amt;
if(a>currentbal || a<0)
{
cout<<"\nSorry!!Invalid transaction!!!";
return 0;
}
else
return 1;
}
main()
{
float minaccbal=1000;
float charges=0.50,withdraw_amt,balance,chargesbal;
int convert;
float currentbal=5000;
cout<<"\nenter the amount to withdraw";
cin>>withdraw_amt;
checkit(withdraw_amt);
if(1)
{
balance=currentbal-withdraw_amt;
chargesbal=balance-charges;
convert=int(chargesbal);
if(convert%5==0)
{
if(chargesbal>minaccbal)
{
cout<<"\nyour balance is"<<chargesbal;
}
else
{
cout<<"\nInsufficient balance failed!!!";
}
}
else
{
cout<<"\nnot a multiple of 5";
}
}
}

rather post the link to the problem

cout<<"\nSorry!!Invalid transaction!!!";

cout<<"\nInsufficient balance failed!!!";
cout<<"\nyour balance is"

Please follow the output format STRICTLY. Any other statement such as this will lead to WA, as judge will see if your output file is EXACTLY equal to the expected output file or not.

Also, you will be given the current balance, its not 5000 for every case. Check the sample case, where it was 120.00 instead of 5000

check your output format which not according to the given question.

https://www.codechef.com/viewsolution/14410029

yo!!thank you!!I ll correct it!!