QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#472124#4925. Adjacent PairsMaMengQiCompile Error//C++14880b2024-07-11 14:38:342024-07-11 14:38:35

Details

answer.code: In function ‘int main()’:
answer.code:15:18: error: expected primary-expression before ‘)’ token
   15 |                 })
      |                  ^
answer.code:26:25: error: ‘m’ was not declared in this scope
   26 |                         m[{x,y}]+=r-l+1>>1;
      |                         ^
answer.code:33:52: error: ‘m’ was not declared in this scope
   33 |                         ans=max(ans,b[i]+c[id[t]])-m[{x,y}];
      |                                                    ^
answer.code:37:31: error: ‘m’ was not declared in this scope
   37 |                         while(m[{id[t],i}] or i==id[t]) ++t;
      |                               ^
answer.code: At global scope:
answer.code:42:1: error: expected declaration before ‘}’ token
   42 | }
      | ^