2 of the total test cases are failed. Please tell the error in the code

import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
if(N==1||N==2){
System.out.println("-1");
}
else if(N%2==0){
int var=1
NN/4;
System.out.print(var-1+" “);
System.out.print(var+1+” ");
}
else if(N%2!=0){
int var=1
N*N+1;
System.out.print(var/2-1+" “);
System.out.print(var/2+” ");
}
}
}

@Rajput.apry,
https://ide.codingblocks.com/s/228392 corrected code

Error:
Use long instead of int.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.