What is the error

#include
using namespace std;

// Function, to evaluate the Pythagoras triplet
// with includes ‘n’ if possible
void evaluate(long long int n)
{

if (n == 1 || n == 2)
    printf("No Pythagoras Triplet exists");

else if (n % 2 == 0) {

    // Calculating for even case
    long long int var = 1LL * n * n / 4;
    printf("Pythagoras Triplets exist i.e. ");
    printf("%lld %lld %lld", n, var - 1, var + 1);
}

else if (n % 2 != 0) {

    // Calculating for odd case
    long long int var = 1LL * n * n + 1;
    printf("Pythagoras Triplets exist i.e. ");
    printf("%lld %lld %lld", n, var / 2 - 1, var / 2);
}

}

// Driver function
int main()
{
long long int v;
cin>>v;
if(v>0){
long long int n = v;
evaluate(n);
}
else
cout<<“negative”;
return 0;
}

hello @sidd27

pls save ur code here->

and share its link with me

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.