NZEC error JAVA

import java.util.;
import java.lang.
;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner hb=new Scanner(System.in);
		int t=hb.nextInt();
		while(t-->0)
		{
			int n=hb.nextInt();
			long c=hb.nextLong();
			long sum=0;
			for(int i=0;i<n;i++)
			{
				int x=hb.nextInt();
				sum+=x;
			}
			if(sum<=c)
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}
}

I had a NZEC error so i tried this code submitted by some other person which was accepted. But still this showed me a NZEC error

Can you share your code which gave you NZEC? @harshpatel10