ID 5454023
Пользователь Росляков Владимир Олегович
Время 17:31<< 07.10.2021 17:33 (22 д. 08:06) 17:36>>
Обработка 17:33 ... 17:33 (5,93 сек.)
Файл 5454023.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 1, осень 2021
Задача C: Set
Набор тестов
Ограничения Время: 1с Память: 512Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:16:0:
set.h: In member function 'void Set::Remove(int64_t)':
set.h:71:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (int64_t i = pos; i < vec.size() - 1; i++) {
                             ~~^~~~~~~~~~~~~~~~
set.h: In member function 'Set Set::Union(const Set&)':
set.h:105:29: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (int64_t i = 0; i < second.vec.size(); i++) {
                           ~~^~~~~~~~~~~~~~~~~~~
set.h: In member function 'Set Set::Intersection(const Set&)':
set.h:117:29: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (int64_t i = 0; i < this->vec.size(); i++) {
                           ~~^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[печатать | |
]
(4 504 b)
0.045s 0.008s 10