ID 5945852
Пользователь Росляков Владимир Олегович
Время 31.12.2021 21:42 (27 д. 21:42) 21:43>>
Обработка 21:42 ... 21:42 (3,16 сек.)
Файл 5945852.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 3, осень 2021
Задача E: Is convertable
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
main.cpp: In function 'int main()':
main.cpp:53:19: error: 'is_customly_convertible' was not declared in this scope
     static_assert(is_customly_convertible<int, int>::value);
                   ^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:53:19: note: suggested alternative: 'is_custom_convertible'
     static_assert(is_customly_convertible<int, int>::value);
                   ^~~~~~~~~~~~~~~~~~~~~~~
                   is_custom_convertible
main.cpp:53:43: error: expected primary-expression before 'int'
     static_assert(is_customly_convertible<int, int>::value);
                                           ^~~
main.cpp:53:43: error: expected ',' before 'int'
main.cpp:53:43: error: expected string-literal before 'int'
main.cpp:53:43: error: expected ')' before 'int'
main.cpp:55:43: error: expected primary-expression before 'int'
     static_assert(is_customly_convertible<int, float>::value);
                                           ^~~
main.cpp:55:43: error: expected ',' before 'int'
main.cpp:55:43: error: expected string-literal before 'int'
main.cpp:55:43: error: expected ')' before 'int'
main.cpp:56:44: error: expected primary-expression before 'float'
     static_assert(!is_customly_convertible<float, float>::value);
                                            ^~~~~
main.cpp:56:43: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
     static_assert(!is_customly_convertible<float, float>::value);
                                           ^
main.cpp:56:44: error: expected ',' before 'float'
     static_assert(!is_customly_convertible<float, float>::value);
                                            ^~~~~
main.cpp:56:44: error: expected string-literal before 'float'
main.cpp:56:44: error: expected ')' before 'float'
main.cpp:58:47: error: expected primary-expression before ',' token
     static_assert(is_customly_convertible<Test, int>::value);
                                               ^
main.cpp:58:49: error: expected string-literal before 'int'
     static_assert(is_customly_convertible<Test, int>::value);
                                                 ^~~
main.cpp:58:49: error: expected ')' before 'int'
main.cpp:59:44: error: expected primary-expression before 'int'
     static_assert(!is_customly_convertible<int, Test>::value);
                                            ^~~
main.cpp:59:43: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
     static_assert(!is_customly_convertible<int, Test>::value);
                                           ^
main.cpp:59:44: error: expected ',' before 'int'
     static_assert(!is_customly_convertible<int, Test>::value);
                                            ^~~
main.cpp:59:44: error: expected string-literal before 'int'
main.cpp:59:44: error: expected ')' before 'int'
main.cpp:61:62: error: expected primary-expression before ',' token
     static_assert(is_customly_convertible<NoCopyConstructible, NoTriviallyConstructible>::value);
                                                              ^
main.cpp:61:64: error: expected string-literal before 'NoTriviallyConstructible'
     static_assert(is_customly_convertible<NoCopyConstructible, NoTriviallyConstructible>::value);
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:61:64: error: expected ')' before 'NoTriviallyConstructible'
main.cpp:62:68: error: expected primary-expression before ',' token
     static_assert(!is_customly_convertible<NoTriviallyConstructible, NoCopyConstructible>::value);
                                                                    ^
main.cpp:62:43: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
     static_assert(!is_customly_convertible<NoTriviallyConstructible, NoCopyConstructible>::value);
                                           ^
main.cpp:62:70: error: expected string-literal before 'NoCopyConstructible'
     static_assert(!is_customly_convertible<NoTriviallyConstructible, NoCopyConstructible>::value);
                                                                      ^~~~~~~~~~~~~~~~~~~
main.cpp:62:70: error: expected ')' before 'NoCopyConstructible'
main.cpp:64:63: error: expected primary-expression before ',' token
     static_assert(!is_customly_convertible<NoCopyConstructible, int>::value);
                                                               ^
main.cpp:64:43: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
     static_assert(!is_customly_convertible<NoCopyConstructible, int>::value);
                                           ^
main.cpp:64:65: error: expected string-literal before 'int'
     static_assert(!is_customly_convertible<NoCopyConstructible, int>::value);
                                                                 ^~~
main.cpp:64:65: error: expected ')' before 'int'
main.cpp:65:44: error: expected primary-expression before 'int'
     static_assert(!is_customly_convertible<int, NoCopyConstructible>::value);
                                            ^~~
main.cpp:65:43: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
     static_assert(!is_customly_convertible<int, NoCopyConstructible>::value);
                                           ^
main.cpp:65:44: error: expected ',' before 'int'
     static_assert(!is_customly_convertible<int, NoCopyConstructible>::value);
                                            ^~~
main.cpp:65:44: error: expected string-literal before 'int'
main.cpp:65:44: error: expected ')' before 'int'
cc1plus: all warnings being treated as errors
[печатать | |
]
(830 b)
0.042s 0.013s 10