+ 2

Code coach compiler not giving expected output but code playground complier does why...?

Code coach complier buggy https://code.sololearn.com/cT7o1k7n1IrL/?ref=app

13th Nov 2022, 10:07 AM
Mister Kwao
Mister Kwao - avatar
4 Respostas
+ 3
Can you add more details? From code coach : Task named "snowballing numbers", have inputs are line by line.. Not in a single line of input. So your code only read first line. And those are integers so you can directly read integers.. also task is to check , each successive number is greater than it's all previous numbers sum. not only a single time.. You may need multiple loops.. So go through description again..
13th Nov 2022, 11:36 AM
Jayakrishna 🇮🇳
13th Nov 2022, 12:28 PM
Mister Kwao
Mister Kwao - avatar
+ 1
That is not correct. For example for this input: 3 1 2 3 the code giving not exoected output=true. 3 is not greather than 1+2. You have to work over your code.
13th Nov 2022, 11:43 AM
JaScript
JaScript - avatar
0
The inputs are given in separate lines. The first number can be used to set the size of your array.
13th Nov 2022, 12:05 PM
Bob_Li
Bob_Li - avatar