QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#734317#5. 在线 O(1) 逆元zyzzyhCompile Error//C++201.2kb2024-11-11 08:52:062024-11-11 08:52:10

Judging History

你现在查看的是最新测评结果

  • [2024-11-11 08:52:10]
  • 评测
  • [2024-11-11 08:52:06]
  • 提交

answer

#include<bits/stdc++.h>
#include"inv.h"
using namespace std;
const int N = 1e6+100;
typedef long long ll;
const ll mod = 998244353;
ll a,b;
void init(int p)
{
	;
}
int inv(const int x)
{
	ll res=1;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	res=res*x%mod;
	x=(ll)x*x%mod;
	return res;
}

詳細信息

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 ‘int inv(int)’:
answer.code:16:10: error: assignment of read-only parameter ‘x’
   16 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:18:10: error: assignment of read-only parameter ‘x’
   18 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:20:10: error: assignment of read-only parameter ‘x’
   20 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:22:10: error: assignment of read-only parameter ‘x’
   22 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:24:10: error: assignment of read-only parameter ‘x’
   24 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:26:10: error: assignment of read-only parameter ‘x’
   26 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:28:10: error: assignment of read-only parameter ‘x’
   28 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:30:10: error: assignment of read-only parameter ‘x’
   30 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:32:10: error: assignment of read-only parameter ‘x’
   32 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:34:10: error: assignment of read-only parameter ‘x’
   34 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:36:10: error: assignment of read-only parameter ‘x’
   36 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:38:10: error: assignment of read-only parameter ‘x’
   38 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:40:10: error: assignment of read-only parameter ‘x’
   40 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:42:10: error: assignment of read-only parameter ‘x’
   42 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:44:10: error: assignment of read-only parameter ‘x’
   44 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:46:10: error: assignment of read-only parameter ‘x’
   46 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:48:10: error: assignment of read-only parameter ‘x’
   48 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:50:10: error: assignment of read-only parameter ‘x’
   50 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:52:10: error: assignment of read-only parameter ‘x’
   52 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:54:10: error: assignment of read-only parameter ‘x’
   54 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:56:10: error: assignment of read-only parameter ‘x’
   56 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:58:10: error: assignment of read-only parameter ‘x’
   58 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:60:10: error: assignment of read-only parameter ‘x’
   60 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:61:10: error: assignment of read-only parameter ‘x’
   61 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:63:10: error: assignment of read-only parameter ‘x’
   63 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:65:10: error: assignment of read-only parameter ‘x’
   65 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:66:10: error: assignment of read-only parameter ‘x’
   66 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:68:10: error: assignment of read-only parameter ‘x’
   68 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:70:10: error: assignment of read-only parameter ‘x’
   70 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~
answer.code:72:10: error: assignment of read-only parameter ‘x’
   72 |         x=(ll)x*x%mod;
      |         ~^~~~~~~~~~~~