peacock_18's blog

By peacock_18, history, 5 weeks ago, In English,

Hey, I am new to this so pardon me if its a naive question. I am getting a runtime error — runtime error: index 3676163 out of bounds for type 'int [n]' when executing my program. However, the same isnt happening when i am running it on my pc. Here is my solution to the problem.
Also all the output values are coming correct both when trying it out on pc or on platform. I am unable to see cases where it is going out of bound (for all values of m and n and values contained in p).

 
 
 
 
  • Vote: I like it
  • +13
  • Vote: I do not like it

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by peacock_18 (previous revision, new revision, compare).

»
5 weeks ago, # |
  Vote: I like it +11 Vote: I do not like it

your t-- statement is outside of the roop, so it would take one eternity to execute it.