What are possible reasons for runtime error?

CAN ANYBODY PLEASE WHAT ARE POSSIBLE REASONS FOR RUNTIME ERROR?
i know division by zero.

1 Like

Probably this is not answer to your question, but I tried and your code failed on first test - see http://ideone.com/Rnq332

2 Likes

thanks betlista , but same input gives output on my compiler (using code blocks), can you guess why this is happening

How are you testing it? Are you using file as described in FAQ - http://www.codechef.com/wiki/faq#How_should_I_test_my_program?

Please do not use all caps for asking questions. http://www.networketiquette.net/do_not_use_all_caps.htm

1 Like

Check out the FAQ: http://www.codechef.com/wiki/faq#Why_do_I_get_a_Runtime_exception

check fr array index out of bounds… tht might b a reason…

Any large arrays should be declared globally, outside of any functions …

2 Likes