0_0_38630085_27189.cpp: In function 'void solve(int, int)':
0_0_38630085_27189.cpp:29:34: error: no matching function for call to 'std::vector<int>::vector(int [11])'
vector<int> tmp(dp[u]); // Save the current dp values of node u
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:64,
from 0_0_38630085_27189.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:543:2: note: candidate: 'template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)'
vector(_InputIterator __first, _InputIterator __last,
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:543:2: note: template argument deduction/substitution failed:
0_0_38630085_27189.cpp:29:34: note: candidate expects 3 arguments, 1 provided
vector<int> tmp(dp[u]); // Save the current dp values of node u
^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:64,
from 0_0_38630085_27189.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:515:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]'
vector(initializer_list<value_type> __l,
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:515:7: note: no known conversion for argument 1 from 'int [11]' to 'std::initializer_list<int>'
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:490:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]'
vector(vector&& __rv, const allocator_type& __m)
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:490:7: note: candidate expects 2 arguments, 1 provided
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:480:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]'
vector(const vector& __x, const allocator_type& __a)
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:480:7: note: candidate expects 2 arguments, 1 provided
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:476:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
vector(vector&& __x) noexcept
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:476:7: note: no known conversion for argument 1 from 'int [11]' to 'std::vector<int>&&'
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:458:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
vector(const vector& __x)
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:458:7: note: no known conversion for argument 1 from 'int [11]' to 'const std::vector<int>&'
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:427:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]'
vector(size_type __n, const value_type& __value,
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:427:7: note: candidate expects 3 arguments, 1 provided
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:415:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]' <near match>
vector(size_type __n, const allocator_type& __a = allocator_type())
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:415:7: note: conversion of argument 1 would be ill-formed:
0_0_38630085_27189.cpp:29:33: error: invalid conversion from 'int*' to 'std::vector<int>::size_type' {aka 'long long unsigned int'} [-fpermissive]
vector<int> tmp(dp[u]); // Save the current dp values of node u
~~~~^
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:64,
from 0_0_38630085_27189.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:402:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]'
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:402:7: note: no known conversion for argument 1 from 'int [11]' to 'const allocator_type&' {aka 'const std::allocator<int>&'}
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:391:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]'
vector()
^~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_vector.h:391:7: note: candidate expects 0 arguments, 1 provided
|