1 count cpp problem


one test case is not passing, please markout my mistake by adding a comment in the code and update the code

@Kush_1312
You code is producing incorrect results for testcases like:

2 0
0 0
Expected Output:
0
0 0

No its giving me the right output

@Kush_1312 the correct answer is
0
0 0