I’ve been facing a continuous issue of SIGHUP error every time I compile my code.
how to solve this??
Hey, which problem is this, can you provide a link to the problem?
It can be problem with your code as well, please share your code.
Take this simple code for example,
import java.util.*;
import java.lang.*;
import java.io.*;
class codeechef{
public static void main (String args[]) {
Scanner sc = new Scanner(System.in);
int x,y,t;
t = sc.nextInt();
for(int i=0;i<t;i++){
x = sc.nextInt();
y = sc.nextInt();
if(x<y)
System.out.println("YES");
else
System.out.println("NO");
}
}
}
Every time I try to run, it shows same error.
In this problem there is no t
. You are taking an input for t
and then for x
and y
, that is why the error is coming.
You don’t need to input t
or run a loop for this problem.
1 Like
oh, I’m really sorry for wasting your time on such a silly question.
i am facing with this issue can you help me solve this issue for the problem geting sighup error Maximise the Sum Practice Coding Problem