In file included from main.cpp:16:0:
set.h: In constructor 'Set::Set(const std::vector<long int>&)':
set.h:10:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < v.size(); i++)
~~^~~~~~~~~~
set.h: In member function 'bool Set::Contains(int64_t) const':
set.h:18:23: 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:31: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 'Set Set::Union(const Set&) const':
set.h:44:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < un_v2.size(); i++) {
~~^~~~~~~~~~~~~~
set.h: In member function 'Set Set::Intersection(const Set&) const':
set.h:55:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < un_v2.size(); i++) {
~~^~~~~~~~~~~~~~
set.h: In member function 'Set Set::Difference(const Set&) const':
set.h:65:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < un_v2.size(); i++) {
~~^~~~~~~~~~~~~~
set.h: In member function 'Set Set::SymmetricDifference(const Set&) const':
set.h:76:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < un_v2.size(); i++) {
~~^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
|