Perfect pair - bitmasking sir i am getting 1 as the output for the testcase whereas 5 is the output how? please explain.quest:https://hack.codingblocks.com/app/practice/5/995/problem

#include
using namespace std;

void PairZeroSum(long long int *a,int n){
int count =0;
for(int i=0;i<n;i++){
// count =0;
for(int j=i+1;j<n;j++){
if((a[j] & a[i]) == 0){
count=count+1;
//cout<<"("<<a[i]<<","<<a[j]<<")"<<endl;
}
// cout<<"("<<a[i]<<","<<a[j]<<")"<<endl;

	}
  }
   cout<<count<<endl;

}
int main () {
int n;
cin>>n;
long long int a[100005];

for(int i=0;i<n;i++){
	cin>>a[i];
}

PairZeroSum(a,n);

return 0;

}

Sample output is wrong ans should be 2 as (a,b) is not equal to (b,a)