LINK TO THE PROBLEM - https://www.spoj.com/problems/JNEXT/ Link to the Source Code - https://ideone.com/lUyIpy Please help me spot the error.
Try these:
3 5 1 2 1 3 1 5 7 0 1 0 0 6 1 2 5 6 5 4