QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#559738#8221. 多方计算DaiRuiChen007Compile Error//C++17436b2024-09-12 08:52:042024-09-12 08:52:11

Judging History

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

  • [2024-09-12 08:52:11]
  • 评测
  • [2024-09-12 08:52:04]
  • 提交

answer

#include<bits/stdc++.h>
#include "mpc.h"
#include "grader.cpp"
using namespace std;
int N,M;
int precalc(int n,int m) { N=n,M=m; return n+m+3; }
bool transmit(player &p,int r,int i) {
	int x=r-1-i;
	if(x<0) {
		if(x>=-8) x+=M+4;
		else x+=M+19;
	}
	if(x<0) return 0;
	if(p.last_message) {
		int y=x;
		while(p.memory[y]) p.memory[y++]=0;
		p.memory[y]=1;
	}
	bool v=p.memory[x];
	if(i<N) p.memory[x]=0;
	return v;
}

Details

answer.code:3:10: fatal error: grader.cpp: No such file or directory
    3 | #include "grader.cpp"
      |          ^~~~~~~~~~~~
compilation terminated.