F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_35622859_23819.cpp:11:45: error: no matching function for call to 'std::vector<std::vector<long long int> >::vector(int, std::vector<int>)'
 vector<vector<ll>> dp(2005,vector<int>(2005)),C(2005,vector<int>(2005));
                                             ^
0_0_35622859_23819.cpp:11:45: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_35622859_23819.cpp:2:
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:
0_0_35622859_23819.cpp:11:45: note:   deduced conflicting types for parameter '_InputIterator' ('int' and 'std::vector<int>')
 vector<vector<ll>> dp(2005,vector<int>(2005)),C(2005,vector<int>(2005));
                                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_35622859_23819.cpp:2:
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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 'int' to 'std::initializer_list<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 'int' to 'std::vector<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 'int' to 'const std::vector<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<long long int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 2 from 'std::vector<int>' to 'const value_type& {aka const std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 2 from 'std::vector<int>' to 'const allocator_type& {aka const std::allocator<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >]
       vector()
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note:   candidate expects 0 arguments, 2 provided
0_0_35622859_23819.cpp:11:71: error: no matching function for call to 'std::vector<std::vector<long long int> >::vector(int, std::vector<int>)'
 vector<vector<ll>> dp(2005,vector<int>(2005)),C(2005,vector<int>(2005));
                                                                       ^
0_0_35622859_23819.cpp:11:71: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_35622859_23819.cpp:2:
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:
0_0_35622859_23819.cpp:11:71: note:   deduced conflicting types for parameter '_InputIterator' ('int' and 'std::vector<int>')
 vector<vector<ll>> dp(2005,vector<int>(2005)),C(2005,vector<int>(2005));
                                                                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_35622859_23819.cpp:2:
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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 'int' to 'std::initializer_list<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 'int' to 'std::vector<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<long long 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 'int' to 'const std::vector<std::vector<long long 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 = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long 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, _All


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 08:26:25, Gzip enabled