ID 5982388
Пользователь Борцов Роман Александрович
Время 17:17<< 14.01.2022 17:23 (0:19) 17:26>>
Обработка 17:23 ... 17:23 (7,18 сек.)
Файл 5982388.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача C: Smart Pointer
Набор тестов
Ограничения Время: 25с Память: 512Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
main.cpp:4:2: error: #error ":("
 #error ":("
  ^~~~~
In file included from SmartPointer.hpp:4:0,
                 from main.cpp:2:
Test_SmartPointer.hpp: In function 'void test::test(const string&) [with __TEST_CLASSNAME__ = smart_pointer::SmartPointer<float, std::allocator<float> >; std::__cxx11::string = std::__cxx11::basic_string<char>]':
Test_SmartPointer.hpp:99:77: error: 'core' is not a member of 'SmartPointer__type_t {aka smart_pointer::SmartPointer<float, std::allocator<float> >}'
         ASSERT(sizeof(SmartPointer__type_t) == sizeof(SmartPointer__type_t::core));
                                                                             ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:104:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core == nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:110:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core != nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:115:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:120:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:121:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:121:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:126:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:127:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:133:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:134:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:140:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:141:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:148:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:149:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:156:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:157:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:157:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:165:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:166:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:166:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:179:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:180:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:180:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:188:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:189:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:195:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core == nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:201:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core == nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:208:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core != nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:215:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core != nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:224:25: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
             ASSERT(sptr.core != nullptr);
                         ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
In file included from main.cpp:6:0:
Test_SmartPointer.hpp:225:24: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
             if (!(sptr.core != nullptr)) {
                        ^~~~
                        Core
[печатать | |
]
(5 983 b)
0.172s 0.009s 10