QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#147825#3531. Prime or numberZhangYiDeCompile Error//C++855b2023-08-23 14:32:302023-08-23 14:32:33

Details

answer.code:3:9: error: ‘__int64’ does not name a type; did you mean ‘__int64_t’?
    3 | typedef __int64 LL;
      |         ^~~~~~~
      |         __int64_t
answer.code:5:1: error: ‘LL’ does not name a type
    5 | LL sum(LL a,LL b,LL mod)
      | ^~
answer.code:18:1: error: ‘LL’ does not name a type
   18 | LL pow(LL a,LL b,LL mod)
      | ^~
answer.code:31:19: error: ‘LL’ was not declared in this scope
   31 | int Miller_Rabbin(LL x)
      |                   ^~
answer.code: In function ‘int main()’:
answer.code:49:5: error: ‘LL’ was not declared in this scope
   49 |     LL n;
      |     ^~
answer.code:50:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   50 |     cin>>n;
      |          ^
      |          yn
answer.code:51:25: error: ‘Miller_Rabbin’ cannot be used as a function
   51 |         if(Miller_Rabbin(n))
      |            ~~~~~~~~~~~~~^~~