[ATM problem] What is wrong here? I am getting NZEC error.

package main;

import java.util.Scanner;


public class Main {


public static void main(String[] args)  {
   int balance;
   double withdraw = 0;
   
   
   
    Scanner s=new Scanner(System.in);
  
    System.out.println("Enter balance: ");
    balance=s.nextInt();
    System.out.println("Enter the amount to withdraw: ");
    withdraw=s.nextInt();
    
    if(withdraw%5==0 && balance>(withdraw+0.50)){
    
    System.out.println("Remaining balance: "+(balance-withdraw-0.50));
    }
    else{
    System.out.println("Not enough balance: "+balance);
        System.exit(0);
    }
}
   
            
}

@shaggy_5 : You dont have to declare a package name , otherwise you will continue to get runtime error .

Once you remove the package name declaration you will get Wrong Answer instead of Run Time Error

You don’t have to print any messages , you code is not to be run by a human , but instead by a machine and you have to match input / output specifications exactly as stated in the problem statement .

@shaggy_5 : don’t name the package and try to limit importing to the specific things you need. you can always read the FAQs to see the constrains that your codes/programs have to follow here on codechef. They have these restrictions cause the codes are not run by human as said by @vineetpaliwal.

//