QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#187356#4912. WereYouLastCrysflyCompile Error//C++20743b2023-09-24 16:36:442023-09-24 16:36:45

Judging History

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

  • [2023-09-24 16:36:45]
  • 评测
  • [2023-09-24 16:36:44]
  • 提交

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 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:26:31: error: ‘query’ was not declared in this scope
   26 |                 while(p<10 && query(p)) modify(p),++p;
      |                               ^~~~~
answer.code:26:41: error: ‘modify’ was not declared in this scope; did you mean ‘modfl’?
   26 |                 while(p<10 && query(p)) modify(p),++p;
      |                                         ^~~~~~
      |                                         modfl
answer.code:28:17: error: ‘modify’ was not declared in this scope; did you mean ‘modfl’?
   28 |                 modify(p);
      |                 ^~~~~~
      |                 modfl