Whats the problem?

#include
#include
using namespace std;
int main() {

int n;
cin >> n;
int sum=0;

if((n==0)||(n==1)||(n==2)||(n<0)) {
    cout << "-1";
    return 0;
}

long long int x,y;

int m;
if(n%2==0) {
m=n/2;
n=1;

    x=pow(m,2)-pow(n,2);
    y=pow(m,2)+pow(n,2);
    cout << x << " " << y;

}

else {
    m=(n+1)/2;
    n=(n-1)/2;
    x=2*m*n;
    y=pow(m,2)+pow(n,2);

    cout << x << " " << y;
}

return 0;

}

what is the problem in my code