ID 5408384
Пользователь Новожилов Илья Сергеевич
Время 18:49<< 25.09.2021 18:49 (10 д. 09:23) 18:56>>
Обработка 18:49 ... 18:49 (6,92 сек.)
Файл Source.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::Add(int64_t)':
set.h:17:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i = 0; i < this->v.size(); i++)
                         ~~^~~~~~~~~~~~~~~~
set.h: In member function 'void Set::Remove(int64_t)':
set.h:26:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i = 0; i < this->v.size(); i++)
                         ~~^~~~~~~~~~~~~~~~
set.h: In member function 'bool Set::Contains(int64_t) const':
set.h:34:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i = 0; i < this->v.size(); i++)
                         ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:37:29: error: no matching function for call to 'Set::Set()'
         Set s1(v1), s2(v2), s3;
                             ^~
In file included from main.cpp:16:0:
set.h:7:14: note: candidate: Set::Set(const std::vector<long int>&)
     explicit Set(const std::vector<int64_t>& v) {
              ^~~
set.h:7:14: note:   candidate expects 1 argument, 0 provided
set.h:3:7: note: candidate: Set::Set(const Set&)
 class Set {
       ^~~
set.h:3:7: note:   candidate expects 1 argument, 0 provided
set.h:3:7: note: candidate: Set::Set(Set&&)
set.h:3:7: note:   candidate expects 1 argument, 0 provided
cc1plus: all warnings being treated as errors
[печатать | |
]
(3 562 b)
0.086s 0.010s 10