QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#560028#8221. 多方计算zqiaorCompile Error//C++11314b2024-09-12 11:33:242024-09-12 11:33:25

Judging History

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

  • [2024-09-12 11:33:25]
  • 评测
  • [2024-09-12 11:33:24]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int N,M;
int precalc(int n,int m){N=n,M=m;return n+m+__lg(n);}
bool transmit(player &X,int t,int x){
	int now=t-x-1,la=X.last_message,Now;
	if(t-x-1<0)return 0;
	if(la){
		while(X.memory[Now])X.memory[Now++]=0;
		X.memory[Now]=1;
	}
	return X.memory[now];
}

Details

answer.code:5:15: error: ‘player’ was not declared in this scope
    5 | bool transmit(player &X,int t,int x){
      |               ^~~~~~
answer.code:5:23: error: ‘X’ was not declared in this scope
    5 | bool transmit(player &X,int t,int x){
      |                       ^
answer.code:5:25: error: expected primary-expression before ‘int’
    5 | bool transmit(player &X,int t,int x){
      |                         ^~~
answer.code:5:31: error: expected primary-expression before ‘int’
    5 | bool transmit(player &X,int t,int x){
      |                               ^~~
answer.code:5:36: error: expression list treated as compound expression in initializer [-fpermissive]
    5 | bool transmit(player &X,int t,int x){
      |                                    ^