foo.cc: In function ‘int getNum(int*, int, int)’:
foo.cc:14:5: warning: no return statement in function returning non-void [-Wreturn-type]
14 | }
| ^
foo.cc: In function ‘bool find(int)’:
foo.cc:87:10: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
87 | if(j==s.size()-1&&s[i]=='0') return false;
| ~^~~~~~~~~~~~
foo.cc:90:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
90 | if(j>=s.size()-1) return true;
| ~^~~~~~~~~~~~
foo.cc:91:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
91 | if(n>=s.size()-1) {n=s.size()-1;if(!tailCheck(i,j,m,n)) return false;}
| ~^~~~~~~~~~~~
foo.cc: In function ‘bool Equal000(std::string)’:
foo.cc:168:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
168 | for(int i=0;i<s1.size();++i)
| ~^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:196:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
196 | for(int l=1;l<=s1.size();++l)
| ~^~~~~~~~~~~