atm problem

no error and perfect answer on my PC compiler…but codechef compiler is displaying a wrong answer messange…pleaze help

#include<iostream>
#include<math.h>
#include<iomanip>
using namespace std;
int main()
{
    int withdraw;
    double ini_bal;
    cin>>withdraw>>ini_bal;


    if(withdraw>ini_bal)
    {
        std::cout << std::fixed;
        std::cout << std::setprecision(2);
        std::cout<<ini_bal;
    }


    if(withdraw<=ini_bal)
    {
    if(fmod(withdraw,5.0)==0.0)
    {
        ini_bal=ini_bal-withdraw;
        ini_bal=ini_bal-0.5;
        std::cout << std::fixed;
        std::cout << std::setprecision(2);
        std::cout<<ini_bal;
    }
    else
    {
        std::cout << std::fixed;
        std::cout << std::setprecision(2);
        std::cout<<ini_bal;
    }
    }

    return 0;
}

i can help you in java you can see my code
atm problem solution

What do you print for a case withdraw is equal to balance? Like 120 120. If you are printing -0.5, then its wrong. You need to have money for withdrawing INCLUDING bank charges

//