Whst is this error in my code

https://online.codingblocks.com/app/player/147318/content/141389/4731
my code:
import java.util.*;
public class Main {
public static void main(String args[]) {
int n =0;
Scanner s = new Scanner(System.in);
n = s.nextInt();
int arr[] = new int[n];
for(int i = 0; i < n; i++)
{
arr[i] = s.nextInt();

    }
    
	System.out.println(boolsort(arr,0));
}


public static boolean boolsort(int[] arr,int si){
   if(si==arr.length-1){
	   return true;
   }
	if(arr[si]>arr[si+1]){
		return false;
	}
		
		boolean res=boolsort(arr,si+1);
		return res;
	}

}

Exception in thread β€œmain” java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextInt(Scanner.java:2117)
at java.util.Scanner.nextInt(Scanner.java:2076)
at Main.main(Main.java:6)

Hey @Par1hsharma
Give custom input

same error in custom input.i have shared the link plz check

Code is fine
Just Submit it
I have verified the code above