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
|