QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#606040#9250. Max GCDucup-team5045Compile Error//C++142.3kb2024-10-02 21:47:492024-10-02 21:47:51

详细

answer.code: In function ‘int main()’:
answer.code:82:26: error: ‘struct node’ has no member named ‘r’
   82 |         qi[i].ans=(qi[i].r-qi[i].l<=1?0:ask(1,qi[i].a,n));
      |                          ^
answer.code:82:34: error: ‘struct node’ has no member named ‘l’
   82 |         qi[i].ans=(qi[i].r-qi[i].l<=1?0:ask(1,qi[i].a,n));
      |                                  ^
answer.code:62:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   62 |     scanf("%d%d",&n,&q);
      |     ~~~~~^~~~~~~~~~~~~~
answer.code:64:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   64 |     scanf("%d",&ai[i]);
      |     ~~~~~^~~~~~~~~~~~~
answer.code:67:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   67 |         scanf("%d%d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~