foo.cc: In function ‘void Get_nex(std::string, int*)’:
foo.cc:11:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
11 | for (int i = 1; i < p.size(); i++)
| ~~^~~~~~~~~~
foo.cc: In function ‘int Smacth(std::string, std::string, int*)’:
foo.cc:32:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
32 | for (int i = 0; i < t.size(); i++)
| ~~^~~~~~~~~~
foo.cc:36:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
36 | if (j == p.size())
| ~~^~~~~~~~~~~
foo.cc:31:13: warning: unused variable ‘i’ [-Wunused-variable]
31 | int i = 0, j = 0;
| ^