Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Блог пользователя ublog

Автор ublog, 13 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
13 лет назад, скрыть # |
← Rev. 3  
Проголосовать: нравится +1 Проголосовать: не нравится

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;