Error in Marbles problem

Sir, I have solved this problem in Java to handle the big Integer in a much easy way. My program is running successfully on online compilers and also showing the correct results of sample test cases but in Hacker Blocks compiler there is a error in compiling.

Sir, Kindly look into this problem

Hi @Shamikh07… i take only C++ doubts… so pls close this doubt and open a new one

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.