+ 1
Test case error
I am writing code in JavaScript and when I run it I get the correct Output but the test case says I have no input, how can that be if I am getting the "correct" output?
3 odpowiedzi
0
Martin Stegi , post the description of the task and the link to your code, so somebody can help you.
0
Martin Stegi Sounds like you busy with the javascript solutions on SoloLearn. The test automatically inserts a value. So if your code works you pass. But ideally you should be able to pass in your own test value for a real working example.
0
Martin Stegi like in the Snail on Wall example. Notice on line 3 I pass a value to readLine()? Without passing in a value you will get no input.
function main() {
var depth = parseInt(readLine(), 10);
readLine(42);
... rest of code