My code is giving segmentation fault

#include<bits/stdc++.h>
using namespace std;
#define endl “\n”
#define sd(val) scanf("%d",&val)
#define ss(val) scanf("%s",&val)
#define sl(val) scanf("%lld",&val)
#define all(v) v.begin(),v.end()
#define PB push_back
#define MP make_pair
#define FF first
#define SS second
#define ll long long int
#define MOD 1000000007
#define clr(val) memset(val,0,sizeof(val))
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);

int main()
{
/#ifndef ONLINE_JUDGE
freopen(“input.txt”, “r”, stdin);
freopen(“output.txt”, “w”, stdout);
#endif
/
int n;
cin>>n;
int no;
int cnt[65];
int j=0,lb=0;
clr(cnt);
for(int i=0;i<n;i++)
{
cin>>no;
j=0;
while(no>0)
{
lb=(no&1);
cnt[j]+=lb;
no>>1;
j++;
}
}
int res=0;int p=1;
for(int i=0;i<64;i++)
{
cnt[i]%=3;
res+=(cnt[i]*p);
p<<1;
}
cout<<res;

return 0;

}
I am unable to find the error