记录详情

Compile Error

foo.cc:53:1: error: 'T2' does not name a type
   53 | T2
      | ^~
In file included from /usr/include/c++/9/vector:67,
                 from foo.cc:57:
/usr/include/c++/9/bits/stl_vector.h: In static member function 'static constexpr bool std::vector<_Tp, _Alloc>::_S_nothrow_relocate(std::true_type)':
/usr/include/c++/9/bits/stl_vector.h:430:23: error: '__relocate_a' is not a member of 'std'
  430 |  return noexcept(std::__relocate_a(std::declval<pointer>(),
      |                       ^~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h: In static member function 'static std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_S_do_relocate(std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::_Tp_alloc_type&, std::true_type)':
/usr/include/c++/9/bits/stl_vector.h:453:14: error: '__relocate_a' is not a member of 'std'
  453 |  return std::__relocate_a(__first, __last, __result, __alloc);
      |              ^~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h: In copy constructor 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&)':
/usr/include/c++/9/bits/stl_vector.h:555:9: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  555 |    std::__uninitialized_copy_a(__x.begin(), __x.end(),
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         __uninitialized_construct_buf
/usr/include/c++/9/bits/stl_vector.h: In constructor 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)':
/usr/include/c++/9/bits/stl_vector.h:576:9: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  576 |    std::__uninitialized_copy_a(__x.begin(), __x.end(),
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         __uninitialized_construct_buf
/usr/include/c++/9/bits/stl_vector.h: In constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&, std::false_type)':
/usr/include/c++/9/bits/stl_vector.h:595:13: error: '__uninitialized_move_a' is not a member of 'std'
  595 |        std::__uninitialized_move_a(__rv.begin(), __rv.end(),
      |             ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h: In member function 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(std::vector<_Tp, _Alloc>::size_type, _ForwardIterator, _ForwardIterator)':
/usr/include/c++/9/bits/stl_vector.h:1511:13: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
 1511 |        std::__uninitialized_copy_a(__first, __last, __result,
      |             ^~~~~~~~~~~~~~~~~~~~~~
      |             __uninitialized_construct_buf
/usr/include/c++/9/bits/stl_vector.h: In member function 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/include/c++/9/bits/stl_vector.h:1582:11: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
 1582 |      std::__uninitialized_copy_a(__first, __last,
      |           ^~~~~~~~~~~~~~~~~~~~~~
      |           __uninitialized_construct_buf
/usr/include/c++/9/bits/stl_vector.h: In member function 'void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&)':
/usr/include/c++/9/bits/stl_vector.h:1593:9: error: '__uninitialized_fill_n_a' is not a member of 'std'
 1593 |    std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h: In member function 'void std::vector<_Tp, _Alloc>::_M_default_initialize(std::vector<_Tp, _Alloc>::size_type)':
/usr/include/c++/9/bits/stl_vector.h:1603:9: error: '__uninitialized_default_n_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
 1603 |    std::__uninitialized_default_n_a(this->_M_impl._M_start, __n,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         __uninitialized_construct_buf
In file included from /usr/include/c++/9/vector:72,
                 from foo.cc:57:
/usr/include/c++/9/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&)':
/usr/include/c++/9/bits/vector.tcc:245:13: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  245 |        std::__uninitialized_copy_a(__x._M_impl._M_start + size(),
      |             ^~~~~~~~~~~~~~~~~~~~~~
      |             __uninitialized_construct_buf
/usr/include/c++/9/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_fill_assign(std::size_t, const value_type&)':
/usr/include/c++/9/bits/vector.tcc:271:11: error: '__uninitialized_fill_n_a' is not a member of 'std'
  271 |      std::__uninitialized_fill_n_a(this->_M_impl._M_finish,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/include/c++/9/bits/vector.tcc:330:13: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  330 |        std::__uninitialized_copy_a(__mid, __last,
      |             ^~~~~~~~~~~~~~~~~~~~~~
      |             __uninitialized_construct_buf
/usr/include/c++/9/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...)':
/usr/include/c++/9/bits/vector.tcc:473:10: error: '__uninitialized_move_if_noexcept_a' is not a member of 'std'
  473 |   = std::__uninitialized_move_if_noexcept_a
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:480:10: error: '__uninitialized_move_if_noexcept_a' is not a member of 'std'
  480 |   = std::__uninitialized_move_if_noexcept_a
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_fill_insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&)':
/usr/include/c++/9/bits/vector.tcc:528:10: error: '__uninitialized_move_a' is not a member of 'std'
  528 |     std::__uninitialized_move_a(this->_M_impl._M_finish - __n,
      |          ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:543:12: error: '__uninitialized_fill_n_a' is not a member of 'std'
  543 |       std::__uninitialized_fill_n_a(this->_M_impl._M_finish,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:548:10: error: '__uninitialized_move_a' is not a member of 'std'
  548 |     std::__uninitialized_move_a(__position.base(), __old_finish,
      |          ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:566:10: error: '__uninitialized_fill_n_a' is not a member of 'std'
  566 |     std::__uninitialized_fill_n_a(__new_start + __elems_before,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:572:14: error: '__uninitialized_move_if_noexcept_a' is not a member of 'std'
  572 |       = std::__uninitialized_move_if_noexcept_a
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:579:14: error: '__uninitialized_move_if_noexcept_a' is not a member of 'std'
  579 |       = std::__uninitialized_move_if_noexcept_a
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_default_append(std::vector<_Tp, _Alloc>::size_type)':
/usr/include/c++/9/bits/vector.tcc:627:8: error: '__uninitialized_default_n_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  627 |   std::__uninitialized_default_n_a(this->_M_impl._M_finish,
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |        __uninitialized_construct_buf
/usr/include/c++/9/bits/vector.tcc:640:14: error: '__uninitialized_default_n_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  640 |         std::__uninitialized_default_n_a(__new_start + __size,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              __uninitialized_construct_buf
/usr/include/c++/9/bits/vector.tcc:656:14: error: '__uninitialized_default_n_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  656 |         std::__uninitialized_default_n_a(__new_start + __size,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              __uninitialized_construct_buf
/usr/include/c++/9/bits/vector.tcc:659:14: error: '__uninitialized_move_if_noexcept_a' is not a member of 'std'
  659 |         std::__uninitialized_move_if_noexcept_a(
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/include/c++/9/bits/vector.tcc:736:12: error: '__uninitialized_move_a' is not a member of 'std'
  736 |       std::__uninitialized_move_a(this->_M_impl._M_finish - __n,
      |            ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:751:12: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  751 |       std::__uninitialized_copy_a(__mid, __last,
      |            ^~~~~~~~~~~~~~~~~~~~~~
      |            __uninitialized_construct_buf
/usr/include/c++/9/bits/vector.tcc:756:12: error: '__uninitialized_move_a' is not a member of 'std'
  756 |       std::__uninitialized_move_a(__position.base(),
      |            ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:774:16: error: '__uninitialized_move_if_noexcept_a' is not a member of 'std'
  774 |         = std::__uninitialized_move_if_noexcept_a
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:778:16: error: '__uninitialized_copy_a' is not a member of 'std'; did you mean '__uninitialized_construct_buf'?
  778 |         = std::__uninitialized_copy_a(__first, __last,
      |                ^~~~~~~~~~~~~~~~~~~~~~
      |                __uninitialized_construct_buf
/usr/include/c++/9/bits/vector.tcc:782:16: error: '__uninitialized_move_if_noexcept_a' is not a member of 'std'
  782 |         = std::__uninitialized_move_if_noexcept_a
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: At global scope:
foo.cc:65:8: error: redefinition of 'int read()'
   65 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:74:11: error: redefinition of 'const int N'
   74 | const int N=1e5+10;
      |           ^
foo.cc:20:11: note: 'const int N' previously defined here
   20 | const int N=510;
      |           ^
foo.cc:76:5: error: redefinition of 'int n'
   76 | int n,m,k;
      |     ^
foo.cc:22:5: note: 'int n' previously declared here
   22 | int n,m;
      |     ^
foo.cc:76:7: error: redefinition of 'int m'
   76 | int n,m,k;
      |       ^
foo.cc:22:7: note: 'int m' previously declared here
   22 | int n,m;
      |       ^
foo.cc:78:5: error: redefinition of 'int main()'
   78 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:100:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  100 |    for(int i=0;i<r.size()-1;i++)
      |                ~^~~~~~~~~~~
foo.cc:109:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  109 |   for(int i=k+1;i<q.size();i++) cout<<q[i];
      |                 ~^~~~~~~~~
foo.cc: At global scope:
foo.cc:114:1: error: 'T3' does not name a type
  114 | T3
      | ^~
foo.cc:126:8: error: redefinition of 'int read()'
  126 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc: In function 'v mul(v, v)':
foo.cc:140:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  140 |     for(int i=0;i<a.size();i++)
      |                 ~^~~~~~~~~
foo.cc:141:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  141 |         for(int j=0;j<b.size();j++)
      |                     ~^~~~~~~~~
foo.cc: At global scope:
foo.cc:156:5: error: redefinition of 'int main()'
  156 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc:175:1: error: 'T4' does not name a type
  175 | T4
      | ^~
foo.cc:187:8: error: redefinition of 'int read()'
  187 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:198:3: error: redefinition of 'v mul(v, v)'
  198 | v mul(v a,v b)
      |   ^~~
foo.cc:137:3: note: 'v mul(v, v)' previously defined here
  137 | v mul(v a,v b)
      |   ^~~
foo.cc: In function 'v mul(v, v)':
foo.cc:201:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  201 |     for(int i=0;i<a.size();i++)
      |                 ~^~~~~~~~~
foo.cc:202:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  202 |         for(int j=0;j<b.size();j++)
      |                     ~^~~~~~~~~
foo.cc: At global scope:
foo.cc:235:5: error: redefinition of 'int main()'
  235 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc:254:1: error: 'T5' does not name a type
  254 | T5
      | ^~
In file included from /usr/include/c++/9/map:60,
                 from foo.cc:258:
/usr/include/c++/9/bits/stl_tree.h:231:18: error: '__aligned_membuf' in namespace '__gnu_cxx' does not name a template type
  231 |       __gnu_cxx::__aligned_membuf<_Val> _M_storage;
      |                  ^~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_tree.h: In member function '_Val* std::_Rb_tree_node<_Val>::_M_valptr()':
/usr/include/c++/9/bits/stl_tree.h:235:16: error: '_M_storage' was not declared in this scope
  235 |       { return _M_storage._M_ptr(); }
      |                ^~~~~~~~~~
/usr/include/c++/9/bits/stl_tree.h: In member function 'const _Val* std::_Rb_tree_node<_Val>::_M_valptr() const':
/usr/include/c++/9/bits/stl_tree.h:239:16: error: '_M_storage' was not declared in this scope
  239 |       { return _M_storage._M_ptr(); }
      |                ^~~~~~~~~~
foo.cc: At global scope:
foo.cc:266:8: error: redefinition of 'int read()'
  266 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:275:11: error: redefinition of 'const int N'
  275 | const int N=1e5+10;
      |           ^
foo.cc:20:11: note: 'const int N' previously defined here
   20 | const int N=510;
      |           ^
foo.cc:281:5: error: redefinition of 'int main()'
  281 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:287:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  287 |   for(int i=0;i<s.size();i++)
      |               ~^~~~~~~~~
foo.cc:289:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  289 |   for(int i=0;i<s.size()-1;i++)
      |               ~^~~~~~~~~~~
foo.cc:307:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  307 |  for(int i=0;i<res.size();i+=2) ans[len++]=res.substr(i,2);
      |              ~^~~~~~~~~~~
foo.cc: At global scope:
foo.cc:314:1: error: 'T6' does not name a type
  314 | T6
      | ^~
foo.cc:325:8: error: redefinition of 'int read()'
  325 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:334:11: error: redefinition of 'const int N'
  334 | const int N=510;
      |           ^
foo.cc:20:11: note: 'const int N' previously defined here
   20 | const int N=510;
      |           ^
foo.cc:335:5: error: conflicting declaration 'int a [510][510]'
  335 | int a[N][N];
      |     ^
foo.cc:75:5: note: previous declaration as 'int a [510]'
   75 | int a[N];
      |     ^
foo.cc:336:5: error: redefinition of 'int n'
  336 | int n,m;
      |     ^
foo.cc:22:5: note: 'int n' previously declared here
   22 | int n,m;
      |     ^
foo.cc:336:7: error: redefinition of 'int m'
  336 | int n,m;
      |       ^
foo.cc:22:7: note: 'int m' previously declared here
   22 | int n,m;
      |       ^
foo.cc:338:5: error: redefinition of 'int main()'
  338 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:343:15: error: invalid types 'int[int]' for array subscript
  343 |    cin>>a[i][j];
      |               ^
foo.cc:351:20: error: invalid types 'int[int]' for array subscript
  351 |     if(k!=j&&a[i][k]>a[i][j])
      |                    ^
foo.cc:351:28: error: invalid types 'int[int]' for array subscript
  351 |     if(k!=j&&a[i][k]>a[i][j])
      |                            ^
foo.cc:358:20: error: invalid types 'int[int]' for array subscript
  358 |     if(k!=i&&a[k][j]<a[i][j])
      |                    ^
foo.cc:358:28: error: invalid types 'int[int]' for array subscript
  358 |     if(k!=i&&a[k][j]<a[i][j])
      |                            ^
foo.cc: At global scope:
foo.cc:371:1: error: 'T7' does not name a type
  371 | T7
      | ^~
In file included from /usr/include/c++/9/deque:69,
                 from /usr/include/c++/9/queue:60,
                 from foo.cc:375:
/usr/include/c++/9/bits/deque.tcc:67:10: error: expected initializer before '<' token
   67 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:92:5: error: 'deque' does not name a type
   92 |     deque<_Tp, _Alloc>&
      |     ^~~~~
/usr/include/c++/9/bits/deque.tcc:138:7: error: too many template-parameter-lists
  138 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:162:7: error: too many template-parameter-lists
  162 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:184:16: error: expected nested-name-specifier before 'deque'
  184 |       typename deque<_Tp, _Alloc>::iterator
      |                ^~~~~
/usr/include/c++/9/bits/deque.tcc:184:16: error: too many template-parameter-lists
/usr/include/c++/9/bits/deque.tcc:207:14: error: expected nested-name-specifier before 'deque'
  207 |     typename deque<_Tp, _Alloc>::iterator
      |              ^~~~~
/usr/include/c++/9/bits/deque.tcc:207:19: error: expected initializer before '<' token
  207 |     typename deque<_Tp, _Alloc>::iterator
      |                   ^
/usr/include/c++/9/bits/deque.tcc:232:14: error: expected nested-name-specifier before 'deque'
  232 |     typename deque<_Tp, _Alloc>::iterator
      |              ^~~~~
/usr/include/c++/9/bits/deque.tcc:232:19: error: expected initializer before '<' token
  232 |     typename deque<_Tp, _Alloc>::iterator
      |                   ^
/usr/include/c++/9/bits/deque.tcc:255:14: error: expected nested-name-specifier before 'deque'
  255 |     typename deque<_Tp, _Alloc>::iterator
      |              ^~~~~
/usr/include/c++/9/bits/deque.tcc:255:19: error: expected initializer before '<' token
  255 |     typename deque<_Tp, _Alloc>::iterator
      |                   ^
/usr/include/c++/9/bits/deque.tcc:289:7: error: too many template-parameter-lists
  289 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:305:10: error: expected initializer before '<' token
  305 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:348:10: error: expected initializer before '<' token
  348 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:372:10: error: expected initializer before '<' token
  372 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:391:10: error: expected initializer before '<' token
  391 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:417:7: error: too many template-parameter-lists
  417 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:441:7: error: too many template-parameter-lists
  441 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:479:7: error: too many template-parameter-lists
  479 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:518:7: error: too many template-parameter-lists
  518 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:555:15: error: expected initializer before '<' token
  555 |     void deque<_Tp, _Alloc>::
      |               ^
/usr/include/c++/9/bits/deque.tcc:571:15: error: expected initializer before '<' token
  571 |     void deque<_Tp, _Alloc>::
      |               ^
/usr/include/c++/9/bits/deque.tcc:584:7: error: too many template-parameter-lists
  584 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:593:7: error: too many template-parameter-lists
  593 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:639:16: error: expected nested-name-specifier before 'deque'
  639 |       typename deque<_Tp, _Alloc>::iterator
      |                ^~~~~
/usr/include/c++/9/bits/deque.tcc:639:16: error: too many template-parameter-lists
/usr/include/c++/9/bits/deque.tcc:680:10: error: expected initializer before '<' token
  680 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:766:7: error: too many template-parameter-lists
  766 |       deque<_Tp, _Alloc>::
      |       ^~~~~
/usr/include/c++/9/bits/deque.tcc:854:11: error: expected initializer before '<' token
  854 |      deque<_Tp, _Alloc>::
      |           ^
/usr/include/c++/9/bits/deque.tcc:876:10: error: expected initializer before '<' token
  876 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:901:10: error: expected initializer before '<' token
  901 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:926:10: error: expected initializer before '<' token
  926 |     deque<_Tp, _Alloc>::
      |          ^
/usr/include/c++/9/bits/deque.tcc:974:16: error: '_Deque_iterator' does not name a type; did you mean '_Bit_iterator'?
  974 |     fill(const _Deque_iterator<_Tp, _Tp&, _Tp*>& __first,
      |                ^~~~~~~~~~~~~~~
      |                _Bit_iterator
/usr/include/c++/9/bits/deque.tcc:974:31: error: expected ',' or '...' before '<' token
  974 |     fill(const _Deque_iterator<_Tp, _Tp&, _Tp*>& __first,
      |                               ^
/usr/include/c++/9/bits/deque.tcc: In function 'void std::fill(int)':
/usr/include/c++/9/bits/deque.tcc:977:24: error: expected nested-name-specifier before '_Deque_iterator'
  977 |       typedef typename _Deque_iterator<_Tp, _Tp&, _Tp*>::_Self _Self;
      |                        ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/deque.tcc:977:39: error: expected initializer before '<' token
  977 |       typedef typename _Deque_iterator<_Tp, _Tp&, _Tp*>::_Self _Self;
      |                                       ^
/usr/include/c++/9/bits/deque.tcc:979:26: error: expected ';' before '::' token
  979 |       for (typename _Self::_Map_pointer __node = __first._M_node + 1;
      |                          ^~
      |                          ;
/usr/include/c++/9/bits/deque.tcc:979:28: error: '::_Map_pointer' has not been declared; did you mean '__is_pointer'?
  979 |       for (typename _Self::_Map_pointer __node = __first._M_node + 1;
      |                            ^~~~~~~~~~~~
      |                            __is_pointer
/usr/include/c++/9/bits/deque.tcc:979:40: error: expected ';' before '__node'
  979 |       for (typename _Self::_Map_pointer __node = __first._M_node + 1;
      |                                        ^~~~~~~
      |                                        ;
/usr/include/c++/9/bits/deque.tcc:979:41: error: '__node' was not declared in this scope; did you mean '__not_'?
  979 |       for (typename _Self::_Map_pointer __node = __first._M_node + 1;
      |                                         ^~~~~~
      |                                         __not_
/usr/include/c++/9/bits/deque.tcc:979:50: error: '__first' was not declared in this scope
  979 |       for (typename _Self::_Map_pointer __node = __first._M_node + 1;
      |                                                  ^~~~~~~
/usr/include/c++/9/bits/deque.tcc:979:69: error: expected ')' before ';' token
  979 |       for (typename _Self::_Map_pointer __node = __first._M_node + 1;
      |           ~                                                         ^
      |                                                                     )
/usr/include/c++/9/bits/deque.tcc:980:12: error: '__node' was not declared in this scope; did you mean '__not_'?
  980 |            __node < __last._M_node; ++__node)
      |            ^~~~~~
      |            __not_
/usr/include/c++/9/bits/deque.tcc:980:21: error: '__last' was not declared in this scope
  980 |            __node < __last._M_node; ++__node)
      |                     ^~~~~~
/usr/include/c++/9/bits/deque.tcc:983:11: error: '__first' was not declared in this scope
  983 |       if (__first._M_node != __last._M_node)
      |           ^~~~~~~
/usr/include/c++/9/bits/deque.tcc:985:47: error: '__value' was not declared in this scope
  985 |    std::fill(__first._M_cur, __first._M_last, __value);
      |                                               ^~~~~~~
/usr/include/c++/9/bits/deque.tcc:989:43: error: '__value' was not declared in this scope
  989 |  std::fill(__first._M_cur, __last._M_cur, __value);
      |                                           ^~~~~~~
/usr/include/c++/9/bits/deque.tcc: At global scope:
/usr/include/c++/9/bits/deque.tcc:993:5: error: '_Deque_iterator' does not name a type; did you mean '_Bit_iterator'?
  993 |     _Deque_iterator<_Tp, _Tp&, _Tp*>
      |     ^~~~~~~~~~~~~~~
      |     _Bit_iterator
/usr/include/c++/9/bits/deque.tcc:1016:5: error: '_Deque_iterator' does not name a type; did you mean '_Bit_iterator'?
 1016 |     _Deque_iterator<_Tp, _Tp&, _Tp*>
      |     ^~~~~~~~~~~~~~~
      |     _Bit_iterator
/usr/include/c++/9/bits/deque.tcc:1056:5: error: '_Deque_iterator' does not name a type; did you mean '_Bit_iterator'?
 1056 |     _Deque_iterator<_Tp, _Tp&, _Tp*>
      |     ^~~~~~~~~~~~~~~
      |     _Bit_iterator
/usr/include/c++/9/bits/deque.tcc:1079:5: error: '_Deque_iterator' does not name a type; did you mean '_Bit_iterator'?
 1079 |     _Deque_iterator<_Tp, _Tp&, _Tp*>
      |     ^~~~~~~~~~~~~~~
      |     _Bit_iterator
In file included from /usr/include/c++/9/queue:64,
                 from foo.cc:375:
/usr/include/c++/9/bits/stl_queue.h:95:47: error: 'deque' does not name a type
   95 |   template<typename _Tp, typename _Sequence = deque<_Tp> >
      |                                               ^~~~~
/usr/include/c++/9/bits/stl_queue.h:95:52: error: expected '>' before '<' token
   95 |   template<typename _Tp, typename _Sequence = deque<_Tp> >
      |                                                    ^
foo.cc:383:8: error: redefinition of 'int read()'
  383 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:392:11: error: redefinition of 'const int N'
  392 | const int N=1e4+10;
      |           ^
foo.cc:20:11: note: 'const int N' previously defined here
   20 | const int N=510;
      |           ^
foo.cc:393:5: error: redefinition of 'int n'
  393 | int n,k;
      |     ^
foo.cc:22:5: note: 'int n' previously declared here
   22 | int n,m;
      |     ^
foo.cc:393:7: error: redefinition of 'int k'
  393 | int n,k;
      |       ^
foo.cc:76:9: note: 'int k' previously declared here
   76 | int n,m,k;
      |         ^
foo.cc:395:10: error: template argument 2 is invalid
  395 | queue<int> q;
      |          ^
foo.cc:396:5: error: redefinition of 'int main()'
  396 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:401:5: error: request for member 'push' in 'q', which is of non-class type 'int'
  401 |   q.push(i);
      |     ^~~~
foo.cc:404:11: error: request for member 'empty' in 'q', which is of non-class type 'int'
  404 |  while(!q.empty())
      |           ^~~~~
foo.cc:408:6: error: request for member 'push' in 'q', which is of non-class type 'int'
  408 |    q.push(q.front()); q.pop();
      |      ^~~~
foo.cc:408:13: error: request for member 'front' in 'q', which is of non-class type 'int'
  408 |    q.push(q.front()); q.pop();
      |             ^~~~~
foo.cc:408:25: error: request for member 'pop' in 'q', which is of non-class type 'int'
  408 |    q.push(q.front()); q.pop();
      |                         ^~~
foo.cc:411:10: error: request for member 'pop' in 'q', which is of non-class type 'int'
  411 |   else q.pop(),ith=1;
      |          ^~~
foo.cc:412:8: error: request for member 'size' in 'q', which is of non-class type 'int'
  412 |   if(q.size()==1) res=q.front();
      |        ^~~~
foo.cc:412:25: error: request for member 'front' in 'q', which is of non-class type 'int'
  412 |   if(q.size()==1) res=q.front();
      |                         ^~~~~
foo.cc: At global scope:
foo.cc:419:1: error: 'T8' does not name a type
  419 | T8
      | ^~
foo.cc:430:8: error: redefinition of 'int read()'
  430 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:439:11: error: redefinition of 'const int N'
  439 | const int N=1e5+10;
      |           ^
foo.cc:20:11: note: 'const int N' previously defined here
   20 | const int N=510;
      |           ^
foo.cc:440:5: error: redefinition of 'int a [510]'
  440 | int a[N];
      |     ^
foo.cc:75:5: note: 'int a [510]' previously declared here
   75 | int a[N];
      |     ^
foo.cc:441:5: error: redefinition of 'int n'
  441 | int n,m,k;
      |     ^
foo.cc:22:5: note: 'int n' previously declared here
   22 | int n,m;
      |     ^
foo.cc:441:7: error: redefinition of 'int m'
  441 | int n,m,k;
      |       ^
foo.cc:22:7: note: 'int m' previously declared here
   22 | int n,m;
      |       ^
foo.cc:441:9: error: redefinition of 'int k'
  441 | int n,m,k;
      |         ^
foo.cc:76:9: note: 'int k' previously declared here
   76 | int n,m,k;
      |         ^
foo.cc:443:5: error: redefinition of 'int main()'
  443 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc:459:1: error: 'T9' does not name a type
  459 | T9
      | ^~
foo.cc:470:8: error: redefinition of 'int read()'
  470 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:479:11: error: redefinition of 'const int N'
  479 | const int N=1e5+10;
      |           ^
foo.cc:20:11: note: 'const int N' previously defined here
   20 | const int N=510;
      |           ^
foo.cc:480:5: error: redefinition of 'int a [510]'
  480 | int a[N];
      |     ^
foo.cc:75:5: note: 'int a [510]' previously declared here
   75 | int a[N];
      |     ^
foo.cc:481:5: error: redefinition of 'int n'
  481 | int n,m,k;
      |     ^
foo.cc:22:5: note: 'int n' previously declared here
   22 | int n,m;
      |     ^
foo.cc:481:7: error: redefinition of 'int m'
  481 | int n,m,k;
      |       ^
foo.cc:22:7: note: 'int m' previously declared here
   22 | int n,m;
      |       ^
foo.cc:481:9: error: redefinition of 'int k'
  481 | int n,m,k;
      |         ^
foo.cc:76:9: note: 'int k' previously declared here
   76 | int n,m,k;
      |         ^
foo.cc:483:5: error: redefinition of 'int main()'
  483 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
foo.cc:499:1: error: 'T10' does not name a type
  499 | T10
      | ^~~
foo.cc:510:8: error: redefinition of 'int read()'
  510 | in int read()
      |        ^~~~
foo.cc:11:8: note: 'int read()' previously defined here
   11 | in int read()
      |        ^~~~
foo.cc:519:11: error: redefinition of 'const int N'
  519 | const int N=1e5+10;
      |           ^
foo.cc:20:11: note: 'const int N' previously defined here
   20 | const int N=510;
      |           ^
foo.cc:520:5: error: redefinition of 'int a [510]'
  520 | int a[N];
      |     ^
foo.cc:75:5: note: 'int a [510]' previously declared here
   75 | int a[N];
      |     ^
foo.cc:521:5: error: redefinition of 'int n'
  521 | int n,k;
      |     ^
foo.cc:22:5: note: 'int n' previously declared here
   22 | int n,m;
      |     ^
foo.cc:521:7: error: redefinition of 'int k'
  521 | int n,k;
      |       ^
foo.cc:76:9: note: 'int k' previously declared here
   76 | int n,m,k;
      |         ^
foo.cc:523:5: error: redefinition of 'int main()'
  523 | int main()
      |     ^~~~
foo.cc:24:5: note: 'int main()' previously defined here
   24 | int main()
      |     ^~~~
In file included from /usr/include/c++/9/vector:67,
                 from foo.cc:57:
/usr/include/c++/9/bits/stl_vector.h: In instantiation of 'static constexpr bool std::vector<_Tp, _Alloc>::_S_nothrow_relocate(std::true_type) [with _Tp = int; _Alloc = std::allocator<int>; std::true_type = std::integral_constant<bool, true>]':
/usr/include/c++/9/bits/stl_vector.h:446:28:   required from 'static constexpr bool std::vector<_Tp, _Alloc>::_S_use_relocate() [with _Tp = int; _Alloc = std::allocator<int>]'
/usr/include/c++/9/bits/vector.tcc:459:44:   required from 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const int&}; _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]'
/usr/include/c++/9/bits/stl_vector.h:1195:4:   required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
foo.cc:96:18:   required from here
/usr/include/c++/9/bits/stl_vector.h:434:7: error: body of 'constexpr' function 'static constexpr bool std::vector<_Tp, _Alloc>::_S_nothrow_relocate(std::true_type) [with _Tp = int; _Alloc = std::allocator<int>; std::true_type = std::integral_constant<bool, true>]' not a return-statement
  434 |       }
      |       ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
4-1 旅游住处
语言
C++
递交时间
2022-08-09 17:55:14
评测时间
2022-08-09 17:55:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes