main.cpp: In function 'int main()':
main.cpp:31:49: error: no matching function for call to 'initialize_vector<int>(int, int, int)'
auto a = initialize_vector<int>(-1, 2, 3);
^
In file included from main.cpp:13:0:
initialize_vector.h:5:16: note: candidate: template<class T, class ... D> std::vector<_Tp> initialize_vector(T, int)
std::vector<T> initialize_vector(T value, int s) {
^~~~~~~~~~~~~~~~~
initialize_vector.h:5:16: note: template argument deduction/substitution failed:
main.cpp:31:49: note: candidate expects 2 arguments, 3 provided
auto a = initialize_vector<int>(-1, 2, 3);
^
main.cpp:37:63: error: no matching function for call to 'initialize_vector<std::__cxx11::string>(const char [4], int, int, int)'
auto a = initialize_vector<std::string>("aba", 3, 4, 2);
^
In file included from main.cpp:13:0:
initialize_vector.h:5:16: note: candidate: template<class T, class ... D> std::vector<_Tp> initialize_vector(T, int)
std::vector<T> initialize_vector(T value, int s) {
^~~~~~~~~~~~~~~~~
initialize_vector.h:5:16: note: template argument deduction/substitution failed:
main.cpp:37:63: note: candidate expects 2 arguments, 4 provided
auto a = initialize_vector<std::string>("aba", 3, 4, 2);
^
main.cpp:52:48: error: no matching function for call to 'initialize_vector<int>(int&, int, int)'
auto a = initialize_vector<int>(v, 2, 1);
^
In file included from main.cpp:13:0:
initialize_vector.h:5:16: note: candidate: template<class T, class ... D> std::vector<_Tp> initialize_vector(T, int)
std::vector<T> initialize_vector(T value, int s) {
^~~~~~~~~~~~~~~~~
initialize_vector.h:5:16: note: template argument deduction/substitution failed:
main.cpp:52:48: note: candidate expects 2 arguments, 3 provided
auto a = initialize_vector<int>(v, 2, 1);
^
|
Файлы на сервере и клиенте не совпали
(314 b)
|