QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#637875#7407. Program OptimizationHuangHanShengCompile Error//C++231.6kb2024-10-13 14:17:062024-10-13 14:17:06

Details

answer.code: In function ‘long long int simulate(long long int, long long int*, long long int, long long int, long long int)’:
answer.code:39:23: error: ordered comparison of pointer with integer zero (‘long long 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)
      |                 ~~~~~~^~~