ID 5945099
Пользователь Ерофеев Артём Андреевич
Время 31.12.2021 16:28 (27 д. 16:29) 16:31>>
Обработка 16:28 ... 16:28 (2,58 сек.)
Файл 5945099.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 3, осень 2021
Задача E: Is convertable
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:19:0:
is_customly_convertible.h:5:38: error: 'void_t' was not declared in this scope
 struct is_customly_convertible<A, B, void_t<decltype(Convert<A, B>())>> :
                                      ^~~~~~
is_customly_convertible.h:5:38: note: suggested alternative:
In file included from /usr/include/c++/7/bits/move.h:54:0,
                 from /usr/include/c++/7/bits/stl_pair.h:59,
                 from /usr/include/c++/7/utility:70,
                 from /usr/include/c++/7/algorithm:60,
                 from main.cpp:1:
/usr/include/c++/7/type_traits:2505:44: note:   'std::void_t'
   template<typename...> using void_t = void;
                                            ^
In file included from main.cpp:19:0:
is_customly_convertible.h:5:70: error: template argument 3 is invalid
 struct is_customly_convertible<A, B, void_t<decltype(Convert<A, B>())>> :
                                                                      ^~
main.cpp: In function 'int main()':
main.cpp:53:5: error: static assertion failed
     static_assert(is_customly_convertible<int, int>::value);
     ^~~~~~~~~~~~~
main.cpp:55:5: error: static assertion failed
     static_assert(is_customly_convertible<int, float>::value);
     ^~~~~~~~~~~~~
main.cpp:58:5: error: static assertion failed
     static_assert(is_customly_convertible<Test, int>::value);
     ^~~~~~~~~~~~~
main.cpp:61:5: error: static assertion failed
     static_assert(is_customly_convertible<NoCopyConstructible, NoTriviallyConstructible>::value);
     ^~~~~~~~~~~~~
[печатать | |
]
(883 b)
0.037s 0.008s 10