QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212005#6640. Talk That Talkucup-team241#Compile Error//C++143.0kb2023-10-13 05:02:322023-10-13 05:02:32

Details

answer.code: In function ‘long long int ksm(long long int, long long int, long long int)’:
answer.code:5:17: error: ‘long long’ specified with ‘__int128’
    5 | #define ll long long
      |                 ^~~~
answer.code:6:14: note: in expansion of macro ‘ll’
    6 | #define i128 ll __int128
      |              ^~
answer.code:19:12: note: in expansion of macro ‘i128’
   19 |     cur = (i128)cur * cur % p;
      |            ^~~~
answer.code:5:17: error: ‘long long’ specified with ‘__int128’
    5 | #define ll long long
      |                 ^~~~
answer.code:6:14: note: in expansion of macro ‘ll’
    6 | #define i128 ll __int128
      |              ^~
answer.code:20:23: note: in expansion of macro ‘i128’
   20 |     if (b & 1) cur = (i128)cur * a % p;
      |                       ^~~~