QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#566552 | #5. 在线 O(1) 逆元 | yihang_01 | Compile Error | / | / | C++20 | 122b | 2024-09-16 00:29:08 | 2024-11-05 22:03:45 |
Judging History
你现在查看的是最新测评结果
- [2024-11-05 22:03:45]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-09-16 00:29:08]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-09-16 00:29:08]
- 提交
answer
using i64 = long long;
i64 mod;
void init(int p) {
mod = p;
}
i64 inv(i64 a) {
return qpow(a, mod-2);
}
详细
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 ‘i64 inv(i64)’: answer.code:9:12: error: ‘qpow’ was not declared in this scope 9 | return qpow(a, mod-2); | ^~~~