QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#472121#4925. Adjacent PairsHuangHanShengCompile Error//C++14879b2024-07-11 14:37:562024-07-11 14:37:57

详细

answer.code: In lambda function:
answer.code:14:67: error: expected ‘;’ before ‘}’ token
   14 |                 sort(id+1,id+n+1,[&](int x,int y){return c[x]>c[y]});
      |                                                                   ^
      |                                                                   ;
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 | }
      | ^