QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#320236#7871. 命运locseyCompile Error//C++202.2kb2024-02-03 14:46:242024-02-03 14:46:24

Details

answer.code: In function ‘void Solver::mian()’:
answer.code:38:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
   38 |                 fprintf(stderr, "floor memery : %d\n", (&_st - &_ed) >> 20);
      |                                                 ~^     ~~~~~~~~~~~~~~~~~~~
      |                                                  |                   |
      |                                                  int                 long int
      |                                                 %ld
answer.code:54:36: error: expected ‘;’ before ‘}’ token
   54 |                         ans += w[i]
      |                                    ^
      |                                    ;
   55 |                 } if(K < 0) return puts("nonnondayo"), void();
      |                 ~