1 / 4
Dec 2014

Here is my 2 codes for problem http://www.spoj.com/problems/HORRIBLE4:

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.

  • created

    Dec '14
  • last reply

    Dec '14
  • 3

    replies

  • 1.2k

    views

  • 2

    users

  • 1

    link

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 unamused

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.