QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#338990#7605. Yet Another Mex ProblemcnyzCompile Error//C++145.3kb2024-02-26 16:07:132024-02-26 16:07:13

详细

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);
      |                          ^