WHEN I RUN THE PROBLEM CODE OF TRUTH AND DARE ,IT SHOWS RUNTIME ERROR.WHEN SAME CODE IS RUN ON CODECHEF
CODE,RUN,COMPILE IDE THEN IT SHOWS OUTPUT BUT TWO TIMES AND WHEN I RUN IT ON ANOTHER ONLINE GDB
IT IS SHOWING CORRECT OUTPUT.CAN ANYONE EXPLAIN WHY?
can you share your code so that we can help?
In line number 47, you have initialised variable tr = 0 and immediately declared the array named tra as size defined by the variable tr, which is, 0. Hence you get Run Time Error when you take input and try to store in it the array.
(My answer is based on your latest submission here)
2 Likes
Okay,Thank you.