Pythagoras triplet : Just one test case failing

My code has managed to pass 4 out of 5 test cases except one test case. Please help me with what I have missed. Here is the code:

#include
using namespace std;
int main() {
long long int n;
cin>>n;
if(n%2 == 0){
cout<<(n/2)(n/2) - 1<<" "<<(n/2)(n/2) + 1;
}else{
cout<<(nn - 1)/2<<" "<<((n+1)/2)((n+1)/2) + ((n-1)/2)*((n-1)/2) ;
}
return 0;
}

@ayushjain.aj300 hey please save your code on ide and then share it here

link is here sir:
https://ide.geeksforgeeks.org/1llknRnQPH

Here is the link sir

@ayushjain.aj300 hey ayush use this
long long int x,y;
if(n==1){
cout<<-1<<endl;
return 0;
}
if(n>0){
if(n%2==0){

     x=((n*n)/4)-1;
     y=((n*n)/4)+1;
     cout<<x<<" "<<y<<endl;
}else if(n%2!=0)
{
    x=(n*n-1)/2;
    y=(1+n*n)/2;
    cout<<x<<" "<<y<<endl;
}
else{
    cout<<"-1"<<endl;
}