Getting Runtime error while submitting solution

Hi ,

I am trying to post solution of : https://hack.codingblocks.com/contests/c/452/458

While clicking on Run button it shows ‘Runtime error’ and no logs print in window.

The code link is : https://ide.codingblocks.com/#/s/13886

Even I am facing the same issue in hack.codingblocks. I am unable to go forward and cover further topics.

Thanks,
Pardeep Sharma

Your logic of findUnique() is correct but why you are defining the nextInt() etc. in your program.
So, I have used your findUnique() and called from main() as:
https://ide.codingblocks.com/#/s/13930.
This will work fine now.

I found a FastReader generic class that helps to take various input [array, list, char and int] from Scanner.