Ide is not working fine

the below code https://ide.codingblocks.com/s/121911
is working fine on netbeans and coding blocks ide.but giving error on challenge ide.
please solve the problem

You have created 2 different scanner objects, one in input function and the other in binarysearch function. Eclipse gives only a warning for that but the hackerblocks compiler gives error. And creating two scanner objects is unnecessary as well. So, create a single static scanner object, outside the main function.

import java.util.*;
public class Main {
static Scanner scan=new Scanner(System.in);
public static void main(String args[]) {