QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#489101 | #5. 在线 O(1) 逆元 | _FJqwq | Compile Error | / | / | C++14 | 299b | 2024-07-24 17:59:29 | 2024-11-05 22:01:47 |
Judging History
你现在查看的是最新测评结果
- [2024-11-05 22:01:47]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-07-24 17:59:30]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-07-24 17:59:29]
- 提交
answer
#include<bits/stdc++.h>
#include"inv.h"
using namespace std;
#define ll long long
const int N=2005,mod=998244353;
ll power(ll x,ll y){
if(!y) return 1ll;
ll z=power(x,y>>1ll);
z=z*z%mod;
if(y&1ll) return z*x%mod
return z;
}
void init(int p){}
int inv(int x){return power(x,mod-2);}
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: In function ‘long long int power(long long int, long long int)’: answer.code:10:33: error: expected ‘;’ before ‘return’ 10 | if(y&1ll) return z*x%mod | ^ | ; 11 | return z; | ~~~~~~