Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

ublog's blog

By ublog, 13 years ago, In English

Recently I submit problem 337C and got compilation error. my code works correctly on latest version of Free Pascal but here got compilation error. The problem happens just when I use functions. is it judge problem? please help me. thank you.

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

| Write comment?
»
13 years ago, hide # |
← Rev. 3  
Vote: I like it +1 Vote: I do not like it

FPC that is used on the server is rather strict, so you can not write pow:=pow*pow mod 1000000009;.

Just use additional local variable to make all calculations and in the end of function write pow := res;