out of 8 test cases 7 run correctly but 1 one of them shows run error what does this mean
What does run error signifies in coding blocks ide
running test case 1(after downloading test case 1) gives correct answer in custom input but while submitting it shows run error
my answer is totally correct as i have seen after downloading test cases but if i submit it shows wrong answer … whats the reason
Can you please share your code by saving it at the given below link and then sharing the same with me here .
n=int(input()) t=0 s=[] for i in range(n): a=int(input()) s.append(a) for i in range(n-1): if s[i]>s[i+1]: continue else: p=i t=1 break for i in range(p,n-1): if s[i]<s[i+1]: continue else: t=2 break if t==0 or t==1: print(“true”) else: print(“false”)
Two major reasons for getting run error are -
-
using an undefined variable or function.
-
using operators on the wrong type of data
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.