Input Mismatch Execution error

Link: https://ide.codingblocks.com/s/142986 While running with the online compiler of coding blocks but on learning platform it’s giving input mismatch error . Kindly, Solve it.

Your code is running perfectly with the correct sample output in both online compiler as well as offline

While running it is giving same answer but during submission wrong answer for test case 1,3,and 4 and run error for test case 2 is appearing

Did you try to run using custom input?

And test case 2 is just
1 2 3 4
1 2 3 4
1 2 3 4

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.