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.
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.
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;