QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#637876#7407. Program OptimizationMaMengQiCompile Error//C++231.6kb2024-10-13 14:17:332024-10-13 14:17:33

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:25: error: ordered comparison of pointer with integer zero (‘long long int*’ and ‘int’)
   39 |             if (l - 2ll >= 0)
      |                 ~~~~~~~~^~~~
answer.code:43:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |             if (r + 1ll < n)
      |                 ~~~~~~~~^~~