QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#666070#9518. 观虫我 (旧版数据)liuhengxiCompile Error//C++14429b2024-10-22 16:28:372024-10-22 21:14:17

Judging History

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

  • [2024-10-22 21:14:17]
  • 管理员手动重测本题所有提交记录
  • [2024-10-22 16:28:45]
  • 评测
  • [2024-10-22 16:28:37]
  • 提交

answer

// hack gen
#if 0
#include<cstdio>
#include<chrono>
#include<random>
#define F(i,l,r) for(int i=l,i##_end=r;i<i##_end;++i)
using namespace std;
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
#define rnd() (int)(rnd()&(~0u>>1))
int n=32,q=1000000;
int main()
{
	printf("%d %d\n",n,q);
	int m=(int)(q*0.55);
	F(i,0,m)printf("! %u\n",0);
	F(i,0,q-m)printf("? %u\n",rnd());
	return 0;
}
#endif

Details

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status