Number of subarrays having sum exactly equal to k

I’m getting the 0th test case as wrong rest all are correct. What’s wrong in my code?

Hey @nidhigupta847 take long long int and then try to submit it. It might get accepted.