I don’t know, why this giving me the wrong answer.
I could not able to find test cases in which this getting wrong.
void solve(){
ll n ; cin >> n ;
ll res = -1 ;
if( n != 1 && n % 2 == 1 ){
n /= 2 ;
res = nn ;
}
else if( n >= 8 && n % 4 == 0 ){
n /= 4;
res = (n-1)(n-1) ;
}
cout << res << endl ;
}