Can anyone tell me why the code is showing runtime error ?

Правка en2, от pandey_04, 2021-07-12 07:40:20

CF is showing runtime error on test 3 because of out of bounds which I think is not true because the code is working fine in local IDE, It's just that the input won't process without pressing enter in local IDE. Why is that ? maybe that's why the input is not getting accepted and runtime error is showing. Also, I think the out of bounds is not legit because that statement is inside 'if' block, so it just won't get executed if the statement is not true. Please have a look at at and tell me why this code is not executing for test 3. Thank you in advance. click Code Link

Теги #c++, #implementation, #doubt

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский pandey_04 2021-07-12 07:41:41 13
en2 Английский pandey_04 2021-07-12 07:40:20 1242
en1 Английский pandey_04 2021-07-12 07:39:33 1935 Initial revision (published)