Input Mismatch Exception

Link: https://ide.codingblocks.com/s/142705
It is giving following error(Input mismatch exception) while running code with coding blocks online platform but, when i am running same code with online coding blocks compiler it’s running fine.
Why is it so? …Due to the following issue, I am unable to check test cases.
Thanks !!

Hi @Mayank2096,
Did you select the correct language on the compiler because this exception occurs when a method and the input that the user entered don’t match. Also, your code will give you wrong answer if the input is:
1
1
1
9
And add a " "(space token) after every ‘,’ (comma) that you print.

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.