A divisible by k

input:
6 4
-4 -2 0 0 2 4

kode:
#include <stdio.h>

int main()
{
int t, N, k;
scanf(“%d”, &t);

for(int i=0; i<t; i++)
{
    scanf("%d %d", &N, &k);

    int A[N];
    for(int j=0; j<N; j++)
    {
        scanf("%d", &A[j]);
    }

    int pos=0, neg=0, divk=0;
    for(int j=0; j<N; j++)
    {
        if(A[j] < 0)
        {
            neg++;
        }
        else if(A[j] > 0)
        {
            pos++;
        }

        if(A[j] % k == 0)
        {
            divk++;
        }
    }

    printf("%d %d %d\n", pos, neg, divk);
}

return 0;

}

output:
2 2 4

why divk=4, other source say divk=6

when you go through the input, you will see that there are only 4 integers (-4,0,0,4) that when get divisible by 4 gets a remainder 0.

Ooh yeahh, i am sorry. I’m not concentrating. Thank you