QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#338990 | #7605. Yet Another Mex Problem | cnyz | Compile Error | / | / | C++14 | 5.3kb | 2024-02-26 16:07:13 | 2024-02-26 16:07:13 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In member function ‘void ODT::cover(int, int, int)’: answer.code:123:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 123 | auto [res,id]=T1.qry(l,r,w); | ^ answer.code: In function ‘void solve()’: answer.code:145:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 145 | for(auto [l,r]:ivl[i-1]) { | ^ answer.code:153:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 153 | for(auto [l,r]:ivl[i]) if(pr!=r) tp.pb(l,r),pr=r; | ^ answer.code:153:55: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(std::tuple_element<0, std::pair<int, int> >::type&, std::tuple_element<1, std::pair<int, int> >::type&)’ 153 | for(auto [l,r]:ivl[i]) if(pr!=r) tp.pb(l,r),pr=r; | ~~~~~^~~~~ In file included from /usr/include/c++/13/vector:66, from /usr/include/c++/13/queue:63, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:157, from answer.code:5: /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::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]’ 1278 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:1278:7: note: candidate expects 1 argument, 2 provided /usr/include/c++/13/bits/stl_vector.h:1295:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]’ 1295 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:1295:7: note: candidate expects 1 argument, 2 provided answer.code:158:29: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 158 | FOR(i,0,n) for(auto [l,r]:ivl[i]) { | ^ answer.code:168:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 168 | for(auto [l,r,w]:op[i]) odt.cover(l,r,w); | ^