always facing run time error,wa,tle on online judge with no issues on my code blocks compiler....

plz help for what is the right approach?? my algorithm always seems perfect to me…

Can you give an example?

Share your code you run on codeblocks, and an ideone link of your code failing to give output for same input. Also mention the problem statement.

1 Like

plz… look at the question wa in next palindrome on this page @shashank13_
it gives wa on spoj & rte on codechef while i am unable to find what’s going wrong…

try out some corner test cases, test your code on against some random numbers and compare your code’s output with AC’ed code output, this way you’ll find the bug… !!

Happy debugging… :slight_smile:

ok thnks…