Hi team,
not able to figure out why the code is causing a runtime error. all test cases are succeeded except one.
#include
using namespace std;
int main()
{
long int n;
cin>>n;
if(n>1000000000 || n<3)
{
return -1;
}
else if (n%2==1)
{
cout<<((nn)/2)<<" "<<(((nn)/2)+1)<<endl;
}
else if(n%2==0)
{
cout<<(((n/2)(n/2))-1)<<" "<<(((n/2)(n/2))+1)<<endl;
}
return 0;
}