Pythagorus Triplet

I have written this code, but only two test cases have passed.
kindly have a look and tell me what is wrong with this code

import java.util.;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
int N=scn.nextInt();
int height,hypo;
if(N%2==0)
{
int m=N/2;
int n=1;
height=(m
m)-(nn);
hypo=(m
m)+(nn);
}
else if(N%2!=0)
{
int m=(N+1)/2;
int n=(N-1)/2;
height=2
mn;
hypo=((m
m)+(n*n));
}
else System.out.print("-1");
System.out.print(height+" ");
System.out.print(hypo);
}
}

can you please share the code on ide.codingblocks.com with formatting and indentation so that I can run the test cases?

After I click on the share button on the IDE. it does not show the link, but shows the copy link button,. but still copies nothing

try using ideone then

Can you see the code through this link??

yes it is visible now!!