QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#637880#7407. Program OptimizationHuangHanShengCompile Error//C++231.6kb2024-10-13 14:18:042024-10-13 14:18:07

Details

answer.code: In function ‘int simulate(int, int*, int, int, int)’:
answer.code:39:23: error: ordered comparison of pointer with integer zero (‘int*’ and ‘int’)
   39 |             if (l - 2 >= 0)
      |                 ~~~~~~^~~~
answer.code:43:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |             if (r + 1 < n)
      |                 ~~~~~~^~~