QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#45284#4563. Radio TowersHuangHanShengCompile Error//C++17483b2022-08-22 15:58:092022-08-22 15:58:10

Details

answer.code: In function ‘int max_towers(int, int, int)’:
answer.code:20:14: error: ‘k’ was not declared in this scope
   20 |     if (L >= k || R <= K) {
      |              ^
answer.code:20:24: error: ‘K’ was not declared in this scope
   20 |     if (L >= k || R <= K) {
      |                        ^
answer.code:23:9: error: ‘H’ was not declared in this scope
   23 |     if (H[L] <= H[k] - D && H[R] <= H[k] - D) {
      |         ^
answer.code:23:19: error: ‘k’ was not declared in this scope
   23 |     if (H[L] <= H[k] - D && H[R] <= H[k] - D) {
      |                   ^