+ 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?

7th Mar 2021, 8:32 AM
Martin Stegi
Martin Stegi - avatar
3 Antworten
0
Martin Stegi , post the description of the task and the link to your code, so somebody can help you.
7th Mar 2021, 9:58 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
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.
9th Mar 2021, 7:48 AM
Ryan Els
Ryan Els - avatar
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
9th Mar 2021, 7:52 AM
Ryan Els
Ryan Els - avatar