QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#147860#3531. Prime or numberZhaoZiLongCompile Error//C++20872b2023-08-23 14:36:172023-08-23 14:36:19

詳細信息

answer.code:3:12: error: ‘__int64’ does not name a type; did you mean ‘__int64_t’?
    3 | #define LL __int64
      |            ^~~~~~~
answer.code:5:1: note: in expansion of macro ‘LL’
    5 | LL sum(LL a,LL b,LL mod)
      | ^~
answer.code:3:12: error: ‘__int64’ does not name a type; did you mean ‘__int64_t’?
    3 | #define LL __int64
      |            ^~~~~~~
answer.code:18:1: note: in expansion of macro ‘LL’
   18 | LL pow(LL a,LL b,LL mod)
      | ^~
answer.code:3:12: error: ‘__int64’ was not declared in this scope; did you mean ‘__ynf64’?
    3 | #define LL __int64
      |            ^~~~~~~
answer.code:31:19: note: in expansion of macro ‘LL’
   31 | int Miller_Rabbin(LL x)
      |                   ^~
answer.code: In function ‘int main()’:
answer.code:3:12: error: ‘__int64’ was not declared in this scope; did you mean ‘__ynf64’?
    3 | #define LL __int64
      |            ^~~~~~~
answer.code:49:5: note: in expansion of macro ‘LL’
   49 |     LL n;
      |     ^~
answer.code:50:19: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   50 |     scanf("%lld",&n);
      |                   ^
      |                   yn
answer.code:52:25: error: ‘Miller_Rabbin’ cannot be used as a function
   52 |         if(Miller_Rabbin(n))
      |            ~~~~~~~~~~~~~^~~