ID 5455038
Пользователь Орлов Андрей Сергеевич
Время 20:59<< 07.10.2021 20:59 (22 д. 11:33) 21:01>>
Обработка 20:59 ... 20:59 (6,23 сек.)
Файл 5455038.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:10:9: error: 'explcit' does not name a type; did you mean 'exit'?
         explcit Set(const std::vector<int64_t> &vec) {
         ^~~~~~~
         exit
set.h: In member function 'void Set::Remove(int64_t)':
set.h:29:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (int i = 0; i < this->set.size(); i++) {
                             ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:37:18: error: no matching function for call to 'Set::Set(std::vector<long int>&)'
         Set s1(v1), s2(v2), s3;
                  ^
In file included from main.cpp:16:0:
set.h:13:9: note: candidate: Set::Set()
         Set() {}
         ^~~
set.h:13:9: note:   candidate expects 0 arguments, 1 provided
set.h:5:7: note: candidate: Set::Set(const Set&)
 class Set {
       ^~~
set.h:5:7: note:   no known conversion for argument 1 from 'std::vector<long int>' to 'const Set&'
set.h:5:7: note: candidate: Set::Set(Set&&)
set.h:5:7: note:   no known conversion for argument 1 from 'std::vector<long int>' to 'Set&&'
main.cpp:37:26: error: no matching function for call to 'Set::Set(std::vector<long int>&)'
         Set s1(v1), s2(v2), s3;
                          ^
In file included from main.cpp:16:0:
set.h:13:9: note: candidate: Set::Set()
         Set() {}
         ^~~
set.h:13:9: note:   candidate expects 0 arguments, 1 provided
set.h:5:7: note: candidate: Set::Set(const Set&)
 class Set {
       ^~~
set.h:5:7: note:   no known conversion for argument 1 from 'std::vector<long int>' to 'const Set&'
set.h:5:7: note: candidate: Set::Set(Set&&)
set.h:5:7: note:   no known conversion for argument 1 from 'std::vector<long int>' to 'Set&&'
main.cpp:78:17: error: 'class Set' has no member named 'Data'
         v3 = s3.Data();
                 ^~~~
cc1plus: all warnings being treated as errors
0.066s 0.008s 9