QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#90364#5818. MacaronllcCompile Error//C++141.5kb2023-03-22 20:12:252023-03-22 20:12:26

Details

answer.code: In function ‘void tag(LL, LL, LL, LL, LL)’:
answer.code:14:28: error: ‘max’ was not declared in this scope; did you mean ‘fmax’?
   14 |                 ++s[x - j][max(y - h[j], 1ll)];
      |                            ^~~
      |                            fmax
answer.code:15:28: error: ‘min’ was not declared in this scope; did you mean ‘sin’?
   15 |                 --s[x - j][min(y + h[j], m) + 1];
      |                            ^~~
      |                            sin
answer.code:18:28: error: ‘max’ was not declared in this scope; did you mean ‘fmax’?
   18 |                 ++s[x + j][max(y - h[j], 1ll)];
      |                            ^~~
      |                            fmax
answer.code:19:28: error: ‘min’ was not declared in this scope; did you mean ‘sin’?
   19 |                 --s[x + j][min(y + h[j], m) + 1];
      |                            ^~~
      |                            sin
answer.code: In function ‘int main()’:
answer.code:45:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   45 |         scanf("%lld %lld %lld %lld %lld", &n, &m, &r, &xs, &ys);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:50:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   50 |         scanf("%lld", &k);
      |         ~~~~~^~~~~~~~~~~~
answer.code:52:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   52 |                 scanf("%lld %lld", &dx, &dy);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~