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.
| # | User | Rating |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 153 |
| 2 | maroonrk | 152 |
| 3 | nik_exists | 151 |
| 4 | maspy | 149 |
| 5 | AmShZ | 147 |
| 6 | Um_nik | 144 |
| 7 | Errichto | 139 |
| 8 | adamant | 135 |
| 9 | BledDest | 134 |
| 10 | cry | 130 |
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.
| Name |
|---|



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;