QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#340867#8136. Rebellious Edgeucup-team199#Compile Error//C++143.2kb2024-02-29 13:39:292024-02-29 13:39:29

Details

answer.code: In function ‘void once()’:
answer.code:80:11: error: unable to find numeric literal operator ‘operator"";’
   80 |   i64 ans=0;
      |           ^~~
answer.code:80:11: note: use ‘-fext-numeric-literals’ to enable more built-in suffixes
answer.code:95:13: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
   95 |     int p=++cnt;//把环缩为p
      |             ^~~
      |             int
answer.code:65:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   65 |   scanf("%d %d", &n, &m);
      |   ~~~~~^~~~~~~~~~~~~~~~~
answer.code:69:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   69 |     scanf("%d %d %d", &x, &y, &z);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:113:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  113 |   scanf("%d", &t);
      |   ~~~~~^~~~~~~~~~