QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#817900#5033. Y 君的序列addiyoueCompile Error//C++172.0kb2024-12-17 14:33:522024-12-17 14:33:53

详细

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