QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#670402#7782. Ursa MinorxyjCompile Error//C++205.4kb2024-10-23 21:34:372024-10-23 21:34:39

詳細信息

answer.code: In function ‘int main()’:
answer.code:206:31: error: ‘k’ was not declared in this scope
  206 |                     add(val[j%k],a[j]);
      |                               ^
answer.code:168:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  168 |     scanf("%d%d%d",&n,&m,&q);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:170:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  170 |         scanf("%d",&A[i]);
      |         ~~~~~^~~~~~~~~~~~
answer.code:172:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  172 |         scanf("%d",&b[i]),st[0][i]=b[i],lg2[i]=log2(i);
      |         ~~~~~^~~~~~~~~~~~
answer.code:196:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  196 |         scanf("%s",opt);
      |         ~~~~~^~~~~~~~~~
answer.code:200:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  200 |             scanf("%d%d%d%d",&l,&r,&s,&t);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:220:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  220 |             scanf("%d%d",&x,&y);
      |             ~~~~~^~~~~~~~~~~~~~