0_0_37885516_12750.cpp: In function 'int main()':
0_0_37885516_12750.cpp:18:16: error: missing template arguments before 'v'
vector v(n, vector<int>(n));
^
0_0_37885516_12750.cpp:27:17: error: 'v' was not declared in this scope
v[i][j] = b[len - 5 * len / 100 - 1];
^
0_0_37885516_12750.cpp:30:24: error: 'v' was not declared in this scope
vector<int> dp{v[0].begin(), v[0].end()};
^
0_0_37885516_12750.cpp:30:48: error: no matching function for call to 'std::vector<int>::vector(<brace-enclosed initializer list>)'
vector<int> dp{v[0].begin(), v[0].end()};
^
0_0_37885516_12750.cpp:30:48: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_37885516_12750.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note: template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note: template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note: 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,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note: no known conversion for argument 1 from '<type error>' to 'std::initializer_list<int>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note: 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)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note: no known conversion for argument 1 from '<type error>' to 'std::vector<int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note: 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)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note: no known conversion for argument 1 from '<type error>' to 'const std::vector<int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(vector&& __x) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
vector(const vector& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note: 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,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note: no known conversion for argument 1 from '<type error>' to 'std::vector<int>::size_type {aka long long unsigned int}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note: 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>]
vector(size_type __n, const allocator_type& __a = allocator_type())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note: no known conversion for argument 1 from '<type error>' to 'std::vector<int>::size_type {aka long long unsigned int}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note: 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
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
vector()
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 2 provided
|