QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#871807 | #9223. Data Determination | HuangHanSheng | Compile Error | / | / | C++17 | 1.6kb | 2025-01-25 22:13:07 | 2025-01-25 22:13:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void test()’: answer.code:60:18: error: 2 names provided for structured binding 60 | auto [X, i] = L.begin(); | ^~~~~~ answer.code:60:18: note: while ‘std::_Rb_tree_const_iterator<std::pair<std::multiset<std::pair<int, int> >, int> >’ decomposes into 1 element answer.code:64:18: error: cannot decompose inaccessible member ‘std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<std::multiset<std::pair<int, int> >, int> > >::current’ of ‘std::reverse_iterator<std::_Rb_tree_const_iterator<std::pair<std::multiset<std::pair<int, int> >, int> > >’ 64 | auto [Y, i] = C.rbegin(); | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/14/bits/stl_iterator.h:148:17: note: declared protected here 148 | _Iterator current; | ^~~~~~~