QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#515166 | #5. 在线 O(1) 逆元 | HHHashmap | Compile Error | / | / | C++14 | 166b | 2024-08-11 15:40:15 | 2024-11-05 22:03:01 |
Judging History
你现在查看的是最新测评结果
- [2024-11-05 22:03:01]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-08-11 15:40:18]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-08-11 15:40:15]
- 提交
answer
#include "inv.h"
#include <bits/stdc++.h>
using namespace std;
int m;
int init(int p)
{
m=p;
return 0;
}
int inv(int x)
{
return (m-m/x)/(m%x);
}
Details
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:5:5: error: ambiguating new declaration of ‘int init(int)’ 5 | int init(int p) | ^~~~ In file included from answer.code:1: inv.h:1:6: note: old declaration ‘void init(int)’ 1 | void init(int p); | ^~~~