I used prompt-sync to take input from vs code console. But when I submitted the code to an online judge, it showed Runtime Error. Link of the Code
please elaborate more on what you are currently working on.
require an external package, you first need to install it.
Did you run
npm install prompt-sync in your project?
I compiled the code successfully on vs code. But when I submitted the code to Google KickStart's ongoing competition, the online judge showed Runtime Error. On the other hand, C++ code was accepted