The Question → PROBLEM
#include <bits/stdc++.h>
using namespace std;
/*
T cases
EACH CASE:
N--> minions K--> integer added
N initial char value
*/
int main(){
int T,N,k,vals,temp;
// temp=0;
cin>>T;
for(int i = 0;i<T;++i)
{
vector<int> v;
cin>>N>>k;
while(cin>>vals)
{
v.push_back(vals+k);
}
temp=0;
for(int j:v)
{
if (j%7==0){
++temp;
// cout<<temp<<endl;
}
}
cout<<temp<<"\n";
}
}
I do not understand why the result of input:
2
5 10
2 4 1 35 1
4 7
2 4 2 35 7
is this:
3
0