foo.cc: In function 'bool sNum(std::string, int)':
foo.cc:9:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i=1;i<s.length();i++)
| ~^~~~~~~~~~~
foo.cc:9:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
9 | for(int i=1;i<s.length();i++)
| ^~~
foo.cc:11:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
11 | if(tmp>=k){
| ^~
foo.cc:12:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int j=1;j<s.length();)
| ~^~~~~~~~~~~
foo.cc: In function 'int Solve(std::string, int)':
foo.cc:29:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | while(j<s.length()){
| ~^~~~~~~~~~~
foo.cc:31:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while(j<s.length()&&sNum(str,n)){
| ~^~~~~~~~~~~
foo.cc:38:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | while(i<s.length()){
| ~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务