#include
#include
using namespace std;
int main() {
long long int n;
cin>>n ;
if(n<=pow(10,9))
if(n<=2){
cout<<"-1"<<endl;
}
else if(n%2==0){
cout<<pow((n/2),2)-1<<β β<<pow((n/2), 2)+1<<endl;
}
else if(n%2!=0){
cout<<2*((n+1)/2)*((n-1)/2)<<β '<<pow((n+1)/2,2) + pow((n-1)/2, 2)<<endl;
}
return 0;
}
Test caes 3 and 4 are shown as being failed.
please help me with the errors in the code
