Borderou de evaluare (job #860620)

Utilizator avatar moticailovitalie Moticailo Vitalie moticailovitalie IP ascuns
Problemă Parking (clasa a 7-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 21 mai 2026 10:50:13 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:41: error: no matching function for call to 'std::vector<std::vector<bool> >::vector(int, bool)' 12 | vector<vector<bool>> west(n+2, false), east(n+2, false), | ^ main.cpp:12:41: note: there are 12 candidates In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/vector:68, from main.cpp:2: /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:736:9: note: candidate 1: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with <template-parameter-2-2> = _InputIterator; _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >]' 736 | vector(_InputIterator __first, _InputIterator __last, | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:736:9: note: template argument deduction/substitution failed: main.cpp:12:41: note: deduced conflicting types for parameter '_InputIterator' ('int' and 'bool') 12 | vector<vector<bool>> west(n+2, false), east(n+2, false), | ^ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:708:7: note: candidate 2: 'std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; allocator_type = std::allocator<std::vector<bool> >]' 708 | vector(initializer_list<value_type> __l, | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:708:43: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<std::vector<bool> >' 708 | vector(initializer_list<value_type> __l, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:689:7: note: candidate 3: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, std::__type_identity_t<_Alloc>&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::__type_identity_t<_Alloc> = std::allocator<std::vector<bool> >]' 689 | vector(vector&& __rv, const __type_identity_t<allocator_type>& __m) | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:689:23: note: no known conversion for argument 1 from 'int' to 'std::vector<std::vector<bool> >&&' 689 | vector(vector&& __rv, const __type_identity_t<allocator_type>& __m) | ~~~~~~~~~^~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:670:7: note: candidate 4: '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> >; allocator_type = std::allocator<std::vector<bool> >; std::false_type = std::false_type]' 670 | vector(vector&& __rv, const allocator_type& __m, false_type) | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:670:7: note: candidate expects 3 arguments, 2 provided /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:665:7: note: candidate 5: '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> >; allocator_type = std::allocator<std::vector<bool> >; std::true_type = std::true_type]' 665 | vector(vector&& __rv, const allocator_type& __m, true_type) noexcept | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:665:7: note: candidate expects 3 arguments, 2 provided /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:654:7: note: candidate 6: 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, std::__type_identity_t<_Alloc>&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; std::__type_identity_t<_Alloc> = std::allocator<std::vector<bool> >]' 654 | vector(const vector& __x, const __type_identity_t<allocator_type>& __a) | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:654:28: note: no known conversion for argument 1 from 'int' to 'const std::vector<std::vector<bool> >&' 654 | vector(const vector& __x, const __type_identity_t<allocator_type>& __a) | ~~~~~~~~~~~~~~^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:650:7: note: candidate 7: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >]' 650 | vector(vector&&) noexcept = default; | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:650:7: note: candidate expects 1 argument, 2 provided /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:631:7: note: candidate 8: 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >]' 631 | vector(const vector& __x) | ^~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:631:7: note: candidate expects 1 argument, 2 provided /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_vector.h:599:7: note: candidate 9: 'std::vector<_Tp, _Alloc>::vector(size_type, const value_type&, const allocator_type&) [with _Tp = std::vector<bool>; _Alloc = std::allocator<std::vector<bool> >; size_type = long unsigned int; value_type = std::vector<bool>; allocator_type = std::allocator<std::vector<bool> >]' 599 | vector(size_type __n, const value_type& __value,