QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#453739#6511. Balancing Sequencesegypt_ioi2024_12Compile Error//C++203.5kb2024-06-24 10:03:032024-06-24 10:03:03

详细

answer.code: In function ‘int main()’:
answer.code:87:62: error: expected ‘;’ before ‘continue’
   87 |                             if(q[j]==(pos>=n?(pos+n)%n:pos+n)continue;
      |                                                              ^~~~~~~~
      |                                                              ;
answer.code:88:43: error: expected ‘)’ before ‘;’ token
   88 |                             Swap(pos,p[j]);
      |                                           ^
      |                                           )
answer.code:87:31: note: to match this ‘(’
   87 |                             if(q[j]==(pos>=n?(pos+n)%n:pos+n)continue;
      |                               ^
answer.code:88:33: error: could not convert ‘Swap.main()::<lambda(int, int)>(pos, p.std::vector<int>::operator[](((std::vector<int>::size_type)j)))’ from ‘void’ to ‘bool’
   88 |                             Swap(pos,p[j]);
      |                             ~~~~^~~~~~~~~~
      |                                 |
      |                                 void