Sigtstp error

link to my code
can anyone help me as why am I getting wa with this code .
I have even tried the method applied in this

code by some other user
but I am still getting sigtstp

You’re missing white spaces, while outputting
For Test Case

2
4
1 2 4 4
5
1 2 2 2 2 

Your Output -

3200
40000

Expected Output

3 2 0 0
4 0 0 0 0 

Thanks alot mate @s5960r

1 Like