QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#817900 | #5033. Y 君的序列 | addiyoue | Compile Error | / | / | C++17 | 2.0kb | 2024-12-17 14:33:52 | 2024-12-17 14:33:53 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
implementer.cpp: In function ‘void {anonymous}::StAr_WaRs::main()’: implementer.cpp:46:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 46 | scanf("%d %d",&n,&M); | ~~~~~^~~~~~~~~~~~~~~ implementer.cpp:47:45: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 47 | for (int i=1;i<=n;i++) scanf("%d",&b[i]),a[i]=i; | ~~~~~^~~~~~~~~~~~ answer.code: In function ‘void SEQ(i64, i64)’: answer.code:66:17: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 66 | answer(1);F(i,1,n)a[i]=p[i]=i,b[Get(i)]=i; | ^ answer.code:27:34: note: in definition of macro ‘F’ 27 | #define F(i,j,n)for(register int i=j;i<=n;i++) | ^ answer.code:67:7: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 67 | F(i,1,n){bt[i]=1<<__lg(i);if(bt[i]<i)bt[i]<<=1;bt[i]-=i-1;} | ^ answer.code:27:34: note: in definition of macro ‘F’ 27 | #define F(i,j,n)for(register int i=j;i<=n;i++) | ^ answer.code:68:11: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 68 | D(i,n,1)if(a[b[i]]^i)in(a[b[i]]),out(i); | ^ answer.code:25:34: note: in definition of macro ‘D’ 25 | #define D(i,j,n)for(register int i=j;i>=n;i--) | ^ /usr/bin/ld: /tmp/cctypQG0.o: in function `main': implementer.cpp:(.text.startup+0x77): undefined reference to `SEQ(int, int)' collect2: error: ld returned 1 exit status