Help me in solving PIXDAM problem

My issue

My code

#include <iostream>
#include <math.h>
using namespace std;

int main() {
	// your code goes here
	long long int p,a,b,c,d,t,i,e;
	cin>>t;
	while(t--){
	    cin>>a>>b>>c>>d>>e;
	    p=(b-c)*(b-c)+(a-d)*(a-d);
	    p=p^1/2;
	    if(p>e){
	        cout<<0<<endl;
	    }
	    else if(e>p){
	        cout<<1<<endl;
	    }
	    
	}
	return 0;
}

Problem Link: CodeChef: Practical coding for everyone

@anurag415
two mistakes first the condition should be p>=e and second u can’t take square root like this u have to do like p=sqrt(p)