ID 5481944
Пользователь Псарев Александр Павлович
Время 22:25<< 13.10.2021 22:26 (9 д. 02:42) 22:26>>
Обработка 22:26 ... 22:26 (6,72 сек.)
Файл 5481944.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 'Set Set::Difference(const Set&)':
set.h:58:1: error: 'res' was not declared in this scope
 res.push_back(s.S[i]);
 ^~~
set.h: In member function 'Set Set::SymmetricDifference(const Set&)':
set.h:71:17: error: 'const class Set' has no member named 'set'; did you mean 'Set'?
 if (std::find(s.set.begin(), s.set.end(), this->S[i]) != s.S.end()) {
                 ^~~
                 Set
set.h:71:32: error: 'const class Set' has no member named 'set'; did you mean 'Set'?
 if (std::find(s.set.begin(), s.set.end(), this->S[i]) != s.S.end()) {
                                ^~~
                                Set
set.h:73:1: error: 'res' was not declared in this scope
 res.push_back(this->S[i]);
 ^~~
[печатать | |
]
(2 395 b)
0.090s 0.029s 10