QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#45308#4563. Radio TowersGuanYunchangCompile Error//C++173.8kb2022-08-22 16:14:142022-08-22 16:14:15

Details

answer.code: In function ‘void init(int, std::vector<int>)’:
answer.code:35:26: error: ‘k’ was not declared in this scope
   35 |                 UP(i, 1, k) if(a[i] > a[k]) good = false;
      |                          ^
answer.code:14:32: note: in definition of macro ‘UP’
   14 | #define UP(a,b,c) for(ll a=b;a<c;++a)
      |                                ^
answer.code:36:23: error: ‘k’ was not declared in this scope
   36 |                 UU(i, k + 1, n) if(a[i] > a[k]) good = false;
      |                       ^
answer.code:15:28: note: in definition of macro ‘UU’
   15 | #define UU(a,b,c) for(ll a=b;a<=c;++a)
      |                            ^