QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#647940 | #7434. 冷たい部屋、一人 | Huluobo | Compile Error | / | / | C++14 | 5.0kb | 2024-10-17 16:17:11 | 2024-10-17 16:17:30 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In member function ‘void List::roll()’: answer.code:77:32: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 77 | while(ut){auto [x,y]=u[ut--];t[x]=y;} | ^ answer.code: In function ‘int main()’: answer.code:121:63: error: no matching function for call to ‘std::vector<std::tuple<int, int, int, int> >::push_back(<brace-enclosed initializer list>)’ 121 | ad[qmx(oc[i][j-1],oc[i][j])].push_back({i,j,l,r}); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/c++/13/vector:66, from answer.code:3: /usr/include/c++/13/bits/stl_vector.h:1278:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<int, int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int, int> >; value_type = std::tuple<int, int, int, int>]’ 1278 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:1278:35: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::vector<std::tuple<int, int, int, int> >::value_type&’ {aka ‘const std::tuple<int, int, int, int>&’} 1278 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/13/bits/stl_vector.h:1295:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::tuple<int, int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int, int> >; value_type = std::tuple<int, int, int, int>]’ 1295 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:1295:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::tuple<int, int, int, int> >::value_type&&’ {aka ‘std::tuple<int, int, int, int>&&’} 1295 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ answer.code:126:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 126 | for(auto [c,t,l,r]:ad[i]){ | ^ answer.code:126:26: error: deduced type ‘std::tuple<int, int, int, int>’ for ‘<structured bindings>’ is incomplete 126 | for(auto [c,t,l,r]:ad[i]){ | ^~~~~~~~~ In file included from /usr/include/c++/13/bits/stl_algobase.h:64, from /usr/include/c++/13/vector:62: /usr/include/c++/13/bits/stl_pair.h:90:11: note: declaration of ‘class std::tuple<int, int, int, int>’ 90 | class tuple; | ^~~~~ answer.code:130:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 130 | for(auto [x,i]:qu[i]) ans[i]+=tr.que(x); | ^ answer.code:154:30: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 154 | auto [l,r,id]=q[j]; | ^ answer.code:168:34: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 168 | for(auto [l,r,id]:Q[j]){ | ^ /usr/include/c++/13/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<int, int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int, int> >]’: /usr/include/c++/13/bits/stl_vector.h:528:7: required from here /usr/include/c++/13/bits/stl_vector.h:367:49: error: invalid use of incomplete type ‘class std::tuple<int, int, int, int>’ 367 | _M_impl._M_end_of_storage - _M_impl._M_start); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_pair.h:90:11: note: declaration of ‘class std::tuple<int, int, int, int>’ 90 | class tuple; | ^~~~~ In file included from /usr/include/c++/13/bits/stl_algobase.h:67: /usr/include/c++/13/bits/stl_iterator.h: In instantiation of ‘__gnu_cxx::__normal_iterator<_Iterator, _Container>& __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++() [with _Iterator = std::tuple<int, int, int, int>*; _Container = std::vector<std::tuple<int, int, int, int> >]’: answer.code:126:26: required from here /usr/include/c++/13/bits/stl_iterator.h:1111:11: error: cannot increment a pointer to incomplete type ‘std::tuple<int, int, int, int>’ 1111 | ++_M_current; | ^~~~~~~~~~ In file included from /usr/include/c++/13/bits/stl_pair.h:60: /usr/include/c++/13/type_traits: In instantiation of ‘struct std::is_destructible<std::tuple<int, int, int, int> >’: /usr/include/c++/13/bits/stl_construct.h:188:51: required from ‘void std::_Destroy(_ForwardIterator, _ForwardIterator) [wi...