Here is my 2 codes for problem http://www.spoj.com/problems/HORRIBLE:
I just remove inline from function Query and procedure Update and got AC. Could anyone explain why, please ? And if possible, could you please tell me when to and when not to use inline ?Thank you.
Think about what inline does. Now think about what a recursive function does. Do you now understand why a recursive function cannot be declared inline?
Please remove both of your code links.
I know that recursive function can't be declared inline. But I don't see any recursion in my codes
My apologies. I can't see ideone code. I just saw what problem you were solving and assumed it was recursive. Please PM me the two codes posted in the post using code tags.