test case 3 and 4 are failing
2 test cases failing
#include using namespace std; int main() { int a,m,n,h,b,p; cin>>a; if (a%2==0) { m=a/2; n=1; p=2mn;b=mm-nn;h=mm+nn; if(pp+bb==hh){ if(b<p){ cout<<"-1"; } else cout<<b<<" “<<h; } else { cout<<”-1"; } } else { m=(a+1)/2; n=(a-1)/2; p=2mn;b=mm-nn;h=mm+nn; if(pp+bb==hh){ if(p<b) cout<<"-1"; else cout<<p<<" “<<h; } else { cout<<”-1"; } } return 0; }
i have shared the code link
