Getting WA when these type of testCases are given

Having a blank line in between every test Case.

Its in a question of SPOJ

2

3
3
1
2

5
2
3
8
6
1

How to handle these type of test Cases

the extra space is just shown to differentiate b/w test cases
u do not have to do anything from ur end inorder to take this input just the usual input style will work well

Sir , am getting WA in these type of tc

Sir , my Code for Inversion Count https://ide.codingblocks.com/s/213201

Getting WA in INVCNT question of SPOJ

ur code would be wrong
it is not because of the input format

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.