ID 5481944
User Псарев Александр Павлович
Time 22:25<< 13.10.2021 22:26 (9 d. 02:42) 22:26>>
Processing 22:26 ... 22:26 (6,72 sec.)
File 5481944.cpp (CLang++ 5.0.0 + Address Sanitizer)
Contest 2 курс. Программирование на C++. Турнир 1, осень 2021
Problem C: Set
Testset
Limits Time: 1s Memory: 512Mb
Status  [?]
CE Compilation error
source | results
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]);
 ^~~
0.056s 0.019s 9