ID 5905839
Пользователь Хомулло Степан Николаевич
Время 12.12.2021 17:22 (8 д. 17:23) 17:23>>
Обработка 17:22 ... 17:22 (3,36 сек.)
Файл 5905839.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 instantiation of 'auto initialize_vector(const T&, Args ...) [with T = int; Args = {int}]':
main.cpp:25:47:   required from here
initialize_vector.h:13:18: error: 'create' was not declared in this scope
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
initialize_vector.h:13:18: note: suggested alternative: 'fread'
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
            fread
main.cpp: In function 'int main()':
main.cpp:25:14: error: 'void a' has incomplete type
         auto a = initialize_vector<int>(17, 10);
              ^
In file included from main.cpp:13:0:
initialize_vector.h: In instantiation of 'auto initialize_vector(const T&, Args ...) [with T = int; Args = {int, int}]':
main.cpp:31:49:   required from here
initialize_vector.h:13:18: error: 'create' was not declared in this scope
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
initialize_vector.h:13:18: note: suggested alternative: 'fread'
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
            fread
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(const T&, Args ...) [with T = std::__cxx11::basic_string<char>; Args = {int, int, int}]':
main.cpp:37:63:   required from here
initialize_vector.h:13:18: error: 'create' was not declared in this scope
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
initialize_vector.h:13:18: note: suggested alternative: 'fread'
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
            fread
main.cpp:37:14: error: 'void a' has incomplete type
         auto a = initialize_vector<std::string>("aba", 3, 4, 2);
              ^
In file included from main.cpp:13:0:
initialize_vector.h: In instantiation of 'auto initialize_vector(const T&, Args ...) [with T = Test; Args = {int}]':
main.cpp:45:47:   required from here
initialize_vector.h:13:18: error: 'create' was not declared in this scope
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
initialize_vector.h:13:18: note: suggested alternative: 'fread'
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
            fread
main.cpp:45:14: error: 'void a' has incomplete type
         auto a = initialize_vector<Test>(4, 10);
              ^
main.cpp:52:14: error: 'void a' has incomplete type
         auto a = initialize_vector<int>(v, 2, 1);
              ^
In file included from main.cpp:13:0:
initialize_vector.h: In instantiation of 'auto initialize_vector(const T&, Args ...) [with T = long int; Args = {int}]':
main.cpp:59:49:   required from here
initialize_vector.h:13:18: error: 'create' was not declared in this scope
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
initialize_vector.h:13:18: note: suggested alternative: 'fread'
     return create(args..., value);
            ~~~~~~^~~~~~~~~~~~~~~~
            fread
main.cpp:59:14: error: 'void a' has incomplete type
         auto a = initialize_vector<int64_t>(w, 1);
              ^
[печатать | |
]
(375 b)
0.099s 0.014s 10