QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#54629#1860. Historic BreakthroughlarryzhongCompile Error//C++171.9kb2022-10-09 21:33:092022-10-09 21:33:11

Details

answer.code:63:36: error: stray ‘#’ in program
   63 |                 T = pow(a, odd, x) # T^(2^k) - 1 is multiple of n
      |                                    ^
answer.code:1:1: error: ‘from’ does not name a type
    1 | from math import gcd
      | ^~~~
answer.code:10:17: error: expected unqualified-id before ‘if’
   10 |                 if d % 2 == 1:
      |                 ^~
answer.code:30:1: error: ‘odd’ does not name a type
   30 | odd, k = 0, 0
      | ^~~
answer.code:86:9: error: ‘global’ does not name a type
   86 |         global odd, k
      |         ^~~~~~