QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#499056#1133. Monster Gameegypt_ioi2024_01Compile Error//C++231.8kb2024-07-31 01:32:262024-07-31 01:32:27

Details

answer.code: In function ‘void mergesort(int, int)’:
answer.code:19:25: error: ‘Query’ was not declared in this scope
   19 |         if(L<=md&&(R>r||Query(fin[R],fin[L])))nah.push_back(fin[L++]);
      |                         ^~~~~
answer.code: In function ‘std::vector<int> Solve(int)’:
answer.code:33:16: error: ‘Query’ was not declared in this scope
   33 |             if(Query(fin[i],fin[j]))ans[i]++;
      |                ^~~~~
answer.code:42:12: error: ‘Query’ was not declared in this scope
   42 |         if(Query(fin[lol[min(n,(int)10)-1].second],fin[lol[min(n,(int)10)-2].second]))swap(lol[min(n,(int)10)-1],lol[min(n,(int)10)-2]);
      |            ^~~~~
answer.code:44:12: error: ‘Query’ was not declared in this scope
   44 |         if(Query(fin[lol[0].second],fin[lol[1].second])==0)swap(lol[0],lol[1]);
      |            ^~~~~
answer.code:49:12: error: ‘Query’ was not declared in this scope
   49 |         if(Query(fin[pos],fin[i])){
      |            ^~~~~