foo.cc: In function ‘std::pair<std::vector<int>, std::__cxx11::basic_string<char> > dfs(std::unordered_map<std::__cxx11::basic_string<char>, std::pair<std::vector<int>, std::__cxx11::basic_string<char> > >&, std::vector<int>&, int, int)’:
foo.cc:65:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
65 | for(int i=2;i<left.first.size();i++) {
| ~^~~~~~~~~~~~~~~~~~
foo.cc:70:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
70 | for(int i=2;i<right.first.size();i++) {
| ~^~~~~~~~~~~~~~~~~~~
foo.cc: In function ‘void solve_1038(std::vector<int>&)’:
foo.cc:87:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
87 | for(int i=2;i<res.first.size();i++) {
| ~^~~~~~~~~~~~~~~~~
foo.cc:88:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
88 | if(i < res.first.size()-1) {
| ~~^~~~~~~~~~~~~~~~~~~~