ID 5924157
Пользователь Матвеев Ян Альбертович
Время 11:20<< 20.12.2021 18:20 (16 д. 18:21) 28.12.2021 10:54>>
Обработка 18:20 ... 18:20 (4,18 сек.)
Файл 5924157.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 3, осень 2021
Задача C: Initialize vector
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:13:0:
initialize_vector.h: In function 'auto initialize_vector(Value, Size, Args ...)':
initialize_vector.h:11:15: error: parameter packs not expanded with '...':
   return std::vector<Args>(s, vec);
               ^~~~~~~~~~~~~~~~~~~~
initialize_vector.h:11:15: note:         'Args'
main.cpp: In function 'int main()':
main.cpp:31:14: error: 'void a' has incomplete type
         auto a = initialize_vector<int>(-1, 2, 3);
              ^
In file included from main.cpp:13:0:
initialize_vector.h: In instantiation of 'auto initialize_vector(Value, Size, Args ...) [with Value = std::__cxx11::basic_string<char>; Size = int; Args = {int, int}]':
main.cpp:37:63:   required from here
initialize_vector.h:10:8: error: 'void vec' has incomplete type
   auto vec = initialize_vector(n, dims...);
        ^~~
main.cpp:37:14: error: 'void a' has incomplete type
         auto a = initialize_vector<std::string>("aba", 3, 4, 2);
              ^
main.cpp:52:14: error: 'void a' has incomplete type
         auto a = initialize_vector<int>(v, 2, 1);
              ^
[печатать | |
]
(1 285 b)
0.096s 0.008s 10