QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#669783#7782. Ursa MinorxyjCompile Error//C++205.0kb2024-10-23 19:39:502024-10-23 19:39:50

Details

answer.code: In function ‘int main()’:
answer.code:198:13: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
  198 |             num++;
      |             ^~~
      |             enum
answer.code:166:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  166 |     scanf("%d%d%d",&n,&m,&q);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:168:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  168 |         scanf("%d",&A[i]);
      |         ~~~~~^~~~~~~~~~~~
answer.code:170:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  170 |         scanf("%d",&b[i]),st[0][i]=b[i],lg2[i]=log2(i);
      |         ~~~~~^~~~~~~~~~~~
answer.code:192:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  192 |         scanf("%s",opt);
      |         ~~~~~^~~~~~~~~~
answer.code:196:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  196 |             scanf("%d%d%d%d",&l,&r,&s,&t);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:209:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  209 |             scanf("%d%d",&x,&y);
      |             ~~~~~^~~~~~~~~~~~~~