I am solving Help Bob problem but I am unable to find where i am going wrong.

my code

#include <bits/stdc++.h>

#define ll long long

#define mod 1000000007

#define endl “\n” // for fast input,output file

using namespace std;

int main() {

ios_base::sync_with_stdio(false);

cin.tie(NULL); // these 3 lines for fast I/P method

cout.tie(NULL);

ll int n,k;

cin>>n>>k;

ll int arr[n];

for(ll int i=0;i<n;i++) cin>>arr[i];

```
vector<ll int>temp(n);
temp[0]=arr[0];
for(ll int i=1;i<n;i++) temp[i]=arr[i]^arr[i-1];
ll int cnt=0;
for(ll int i=0;i<n;i++){
if((temp[i]>>(k-1))&1) cnt++;
}
cout<<cnt;
return 0;
```

}