Solving ATM (HS08TEST)

Hi peers,
I am new to codechef. I tried to solve ATM problem. The code which i have done is working in my IDE but codechef compiler is showing error. Please help me out in this.

Question : Contest Page | CodeChef

My Answer :
import java.util.Scanner;

public class ATM {

public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int withdrawAmount = sc.nextInt();
    float balanceAmount = sc.nextFloat();

    if(withdrawAmount <= balanceAmount && withdrawAmount%5==0)
    {
        balanceAmount-=(withdrawAmount+0.50);
        System.out.printf("%.2f",balanceAmount);
    }
    else if(withdrawAmount%5 != 0)
        System.out.printf("%.2f",balanceAmount);

    else
        System.out.printf("%.2f",balanceAmount);
}

}