Arrays : sum of two arrays

why i am getting (Exception in thread “main” java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:864)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextInt(Scanner.java:2117)
at java.util.Scanner.nextInt(Scanner.java:2076)
at Main.main(Main.java:9)) during the challenge while i am getting right answer on eclipse and online ide .

It is not showing this compile error when I tried to submit just now. But definitely the code isn’t yet fully correct. It is giving wrong answer. Look at that issue.

@Sejalrathi your code is correct and passes all the test cases for me .

then why it is giving runtime error for 1st and 3rd test cases

@Sejalrathi

your code does pass all the test cases .Please check again .If the problem persists u can mail to [email protected]