ID 5408384
User Новожилов Илья Сергеевич
Time 18:49<< 25.09.2021 18:49 (10 d. 09:23) 18:56>>
Processing 18:49 ... 18:49 (6,92 sec.)
File Source.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 '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
0.065s 0.014s 9