QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#712934#5. 在线 O(1) 逆元liuenciCompile Error//C++14174b2024-11-05 17:32:252024-11-05 22:08:03

詳細信息

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:8:14: error: ‘int inv(int)’ redeclared as different kind of entity
    8 | int inv(int x)
      |              ^
answer.code:2:5: note: previous declaration ‘int inv [10000010]’
    2 | int inv[10000010];
      |     ^~~