Borderou de evaluare (job #777977)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Meta (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 mai 2024 17:07:56 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:33:73: error: no matching function for call to 'std::vector<std::vector<std::pair<short int, int> > >::vector(const int&, std::vector<std::pair<int, int> >)'
33 | vector<vector<pair<short, int>>> adj(N), dp(N, vector<pair<int, int>>(l));
| ^
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/vector:66,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/queue:63,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:157,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:704:9: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with <template-parameter-2-2> = _InputIterator; _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >]'
704 | vector(_InputIterator __first, _InputIterator __last,
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:704:9: note: template argument deduction/substitution failed:
main.cpp:33:73: note: deduced conflicting types for parameter '_InputIterator' ('int' and 'std::vector<std::pair<int, int> >')
33 | vector<vector<pair<short, int>>> adj(N), dp(N, vector<pair<int, int>>(l));
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:675:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >; allocator_type = std::allocator<std::vector<std::pair<short int, int> > >]'
675 | vector(initializer_list<value_type> __l,
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:675:43: note: no known conversion for argument 1 from 'const int' to 'std::initializer_list<std::vector<std::pair<short int, int> > >'
675 | vector(initializer_list<value_type> __l,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:656:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, std::__type_identity_t<_Alloc>&) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >; std::__type_identity_t<_Alloc> = std::allocator<std::vector<std::pair<short int, int> > >]'
656 | vector(vector&& __rv, const __type_identity_t<allocator_type>& __m)
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:656:23: note: no known conversion for argument 1 from 'const int' to 'std::vector<std::vector<std::pair<short int, int> > >&&'
656 | vector(vector&& __rv, const __type_identity_t<allocator_type>& __m)
| ~~~~~~~~~^~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:637:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&, std::false_type) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >; allocator_type = std::allocator<std::vector<std::pair<short int, int> > >; std::false_type = std::integral_constant<bool, false>]'
637 | vector(vector&& __rv, const allocator_type& __m, false_type)
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:637:7: note: candidate expects 3 arguments, 2 provided
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:632:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&, std::true_type) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >; allocator_type = std::allocator<std::vector<std::pair<short int, int> > >; std::true_type = std::integral_constant<bool, true>]'
632 | vector(vector&& __rv, const allocator_type& __m, true_type) noexcept
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:632:7: note: candidate expects 3 arguments, 2 provided
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:621:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, std::__type_identity_t<_Alloc>&) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >; std::__type_identity_t<_Alloc> = std::allocator<std::vector<std::pair<short int, int> > >]'
621 | vector(const vector& __x, const __type_identity_t<allocator_type>& __a)
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:621:28: note: no known conversion for argument 1 from 'const int' to 'const std::vector<std::vector<std::pair<short int, int> > >&'
621 | vector(const vector& __x, const __type_identity_t<allocator_type>& __a)
| ~~~~~~~~~~~~~~^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:617:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >]'
617 | vector(vector&&) noexcept = default;
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:617:7: note: candidate expects 1 argument, 2 provided
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:598:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >]'
598 | vector(const vector& __x)
| ^~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:598:7: note: candidate expects 1 argument, 2 provided
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_vector.h:566:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(size_type, const value_type&, const allocator_type&) [with _Tp = std::vector<std::pair<short int, int> >; _Alloc = std::allocator<std::vector<std::pair<short int, int> > >; size_type = unsigned int; value_type = std::vector<std::pair<short int, int> >; allocator_type = std::allocator<std::vector<std::pair<short int, int> > >]'
566 | vector(size_type __n, const value_type& __value,