QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#453739 | #6511. Balancing Sequences | egypt_ioi2024_12 | Compile Error | / | / | C++20 | 3.5kb | 2024-06-24 10:03:03 | 2024-06-24 10:03:03 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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