What is wrong in my code :
#include
using namespace std;
int main () {
int no;
cin>>no;
if (no<0){
cout<<"-1"<<endl;
}
if (no>=0){
if (no%2==0){
int m,n;
m = no/2;
n = 1;
int b,c;
b = mm - nn;
c = mm + nn;
if ( b == 0 || c == 0 || b<0 || c<0){
cout<<"-1"<<endl;
}
else{
cout<<b<<" “<<c<<endl;
}
}
if (no%2 !=0){
float m,n;
m = (no + 1)/(2.0);
n = (no - 1)/(2.0);
float b,c;
b = 2mn;
c = mm + nn;
if (float(b) != int(b) || float© != int© || b==0 || c==0 || b<0 || c<0){
cout<<”-1"<<endl;
}
else {
cout<<b<<" "<<c<<endl;
}}
}
return 0 ;
}
It’s showing two testcases failed.
