foo.cc: In member function ‘void PolyList::Merge()’:
foo.cc:23:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
23 | for (int i = 0; i < t.size(); i++)
| ~~^~~~~~~~~~
foo.cc:26:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
26 | for (int j = 0; j < merged.size(); j++)
| ~~^~~~~~~~~~~~~~~
foo.cc: In member function ‘PolyList PolyList::operator+(PolyList&)’:
foo.cc:46:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
46 | while (i <t.size() && j <obj.t.size())
| ~~^~~~~~~~~
foo.cc:46:41: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
46 | while (i <t.size() && j <obj.t.size())
| ~~^~~~~~~~~~~~~
foo.cc:66:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
66 | while(i<t.size())
| ~^~~~~~~~~
foo.cc:71:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
71 | while(j<obj.t.size())
| ~^~~~~~~~~~~~~
foo.cc: In member function ‘void PolyList::Output()’:
foo.cc:85:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
85 | for (int i=0;i<t.size();i++)
| ~^~~~~~~~~