QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#464829 | #5. 在线 O(1) 逆元 | ETO_leader | Compile Error | / | / | C++23 | 259b | 2024-07-06 15:17:21 | 2024-11-05 21:59:48 |
Judging History
你现在查看的是最新测评结果
- [2024-11-05 21:59:48]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-07-06 15:17:25]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-07-06 15:17:21]
- 提交
answer
using ulint=unsigned long long;
static constexpr auto MOD=998244353;
void init(int p){}
constexpr auto inv(int ax){
auto res=0ull,x=(ulint)(ax);auto b=MOD-2;
while(b){
if(b&1) (res*=res)%=MOD;
(x*=x)%=MOD;b>>=1;
}
return res;
}
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); | ~~~~~^~~~~~~~~~ /usr/bin/ld: /tmp/ccWHQpDC.o: in function `main': implementer.cpp:(.text.startup+0x1d0): undefined reference to `inv(int)' collect2: error: ld returned 1 exit status