Pythagorous triplet

beside using abs() and I am getting positive values of X and Y
I have passed test case 0, 1 and 2
I am not able to pass test case 4 and test case 5

Please help me finding

hello @jatinnirwan08
pls save ur code at cb ide and share it link with me

#include
#include
using namespace std;
int main() {
long long int N;
cin>>N;
double p=0;
if(N==0||N==1||N==2)
{
cout<<-1;
}
else if(N%2==0)
{
p=N/2;
p=abs§;
cout<<(pp)-1<<" "<<(pp)+1<<endl;
}
else if(N%2!=0)
{
p=(N*N)/2;
p=abs§;
cout<<p<<" "<<p+1<<endl;
}
return 0;
}

not here.

go to this link -> https://ide.codingblocks.com/

paste ur code in editor .
press ctrl + s and then save.

a url will be generated in search bar , copy that url and paste here in this thread

check now->

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.