QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#184549 | #7104. Halting Problem | ucup-team1168# | Compile Error | / | / | C++17 | 1.5kb | 2023-09-20 20:58:07 | 2023-09-20 20:58:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void run()’: answer.code:9:56: error: no matching function for call to ‘std::vector<std::vector<bool> >::vector(int, std::vector<int>)’ 9 | vector<vector<bool> >t(258, vector<int>(100008)); | ^ In file included from /usr/include/c++/11/vector:67, from /usr/include/c++/11/functional:62, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from answer.code:1: /usr/include/c++/11/bits/stl_vector.h:653:9: note: candidate: ‘template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >]’ 653 | vector(_InputIterator __first, _InputIterator __last, | ^~~~~~ /usr/include/c++/11/bits/stl_vector.h:653:9: note: template argument deduction/substitution failed: answer.code:9:56: note: deduced conflicting types for parameter ‘_InputIterator’ (‘int’ and ‘std::vector<int>’) 9 | vector<vector<bool> >t(258, vector<int>(100008)); | ^ In file included from /usr/include/c++/11/vector:67, from /usr/include/c++/11/functional:62, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from answer.code:1: /usr/include/c++/11/bits/stl_vector.h:625:7: note: candidate: ‘std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<bool> >]’ 625 | vector(initializer_list<value_type> __l, | ^~~~~~ /usr/include/c++/11/bits/stl_vector.h:625:43: note: no known conversion for argument 1 from ‘int’ to ‘std::initializer_list<std::vector<bool> >’ 625 | vector(initializer_list<value_type> __l, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_vector.h:607:7: note: candidate: ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<bool> >]’ 607 | vector(vector&& __rv, const allocator_type& __m) | ^~~~~~ /usr/include/c++/11/bits/stl_vector.h:607:23: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<std::vector<bool> >&&’ 607 | vector(vector&& __rv, const allocator_type& __m) | ~~~~~~~~~^~~~ /usr/include/c++/11/bits/stl_vector.h:589:7: note: candidate: ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&, std::false_type) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<bool> >; std::false_type = std::integral_constant<bool, false>]’ 589 | vector(vector&& __rv, const allocator_type& __m, false_type) | ^~~~~~ /usr/include/c++/11/bits/stl_vector.h:589:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/11/bits/stl_vector.h:585:7: note: candidate: ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&, std::true_type) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<bool> >; std::true_type = std::integral_constant<bool, true>]’ 585 | vector(vector&& __rv, const allocator_type& __m, true_type) noexcept | ^~~~~~ /usr/include/c++/11/bits/stl_vector.h:585:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/11/bits/stl_vector.h:575:7: note: candidate: ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<bool> >]’ 575 | vector(const vector& __x, const allocator_type& __a) | ^~~~~~ /usr/include/c++/11/bits/stl_vector.h:575:28: note: no known conversion for argument 1 from ‘int’ to ‘const std::vector<std::vector<bool> >&’ 575 | vector(const vector& __x, const allocator_type& __a) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_vector.h:572:7: note: candidate: ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = std::vector<bool>; _Alloc = std...