QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#498604#4495. Shinobu loves tripMaMengQiCompile Error//C++171.0kb2024-07-30 16:35:142024-07-30 16:35:16

Details

answer.code: In function ‘int main()’:
answer.code:38:36: error: ‘ii’ was not declared in this scope; did you mean ‘i’?
   38 |                 for(int i=1;i<=M;++ii)
      |                                    ^~
      |                                    i
answer.code:31:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   31 |         scanf("%d",&T);
      |         ~~~~~^~~~~~~~~
answer.code:36:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   36 |                 scanf("%d%d%d%d",&p,&a,&n,&q);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:45:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   45 |                         scanf("%d%d",&b[i],&d[i]);
      |                         ~~~~~^~~~~~~~~~~~~~~~~~~~
answer.code:51:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   51 |                         scanf("%d",&t);
      |                         ~~~~~^~~~~~~~~