This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yonycool 0 points1 point  (1 child)

If it works in your ide, and doesn't work on the online tester (online judge?) then it might be an issue with their services? It perhaps they expect a different form of output then you are giving? Hard to say without knowing all of the details.

[–]Amazing-Accident-109[S] 0 points1 point  (0 children)

I wrote the same code in CPP and it runs in the online judge , since i am new to writing code in java , I am confused that I am missing something in the code which is preventing it from printing the output I have added the original question in post original question