QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#187359#4912. WereYouLastCrysflyCompile Error//C++20787b2023-09-24 16:37:212023-09-24 16:37:21

Judging History

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

  • [2023-09-24 16:37:21]
  • 评测
  • [2023-09-24 16:37:21]
  • 提交

answer

// what is matter? never mind. 
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,sse4,popcnt,abm,mmx,avx,avx2") 
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define ll long long
#define ull unsigned long long
//#define int long long
using namespace std;

#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;

#define maxn 500005
#define inf 0x3f3f3f3f

bool query(int);
void modify(int,bool);

bool WereYouLast(int n,int m){
	if(n==(1<<10)){
		int p=0;
		while(p<10 && query(p)) modify(p),++p;
		if(p==10)return 1;
		modify(p);
		return 0;
	}
	return 1;
}

Details

answer.code: In function ‘bool WereYouLast(int, int)’:
answer.code:29:47: error: too few arguments to function ‘void modify(int, bool)’
   29 |                 while(p<10 && query(p)) modify(p),++p;
      |                                         ~~~~~~^~~
answer.code:24:6: note: declared here
   24 | void modify(int,bool);
      |      ^~~~~~
answer.code:31:23: error: too few arguments to function ‘void modify(int, bool)’
   31 |                 modify(p);
      |                 ~~~~~~^~~
answer.code:24:6: note: declared here
   24 | void modify(int,bool);
      |      ^~~~~~