QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#187359 | #4912. WereYouLast | Crysfly | Compile Error | / | / | C++20 | 787b | 2023-09-24 16:37:21 | 2023-09-24 16:37:21 |
Judging History
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); | ^~~~~~