QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#334353#5. 在线 O(1) 逆元xcx0902Compile Error//C++14289b2024-02-21 19:37:102024-11-05 21:57:39

詳細信息

implementer.cpp: In function ‘int main()’:
implementer.cpp:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |         scanf("%d", &n);
      |         ~~~~~^~~~~~~~~~
answer.code: In function ‘void init(int)’:
answer.code:10:51: error: ‘P’ was not declared in this scope
   10 |                 a[i] = (long long)(p - p / i) * a[P % i] % p;
      |                                                   ^