foo.cc: In function 'int say1(std::string*, int*, int*, std::string*, int*)':
foo.cc:46:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
46 | if (a!=content.npos){
foo.cc:51:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
51 | if (a!=content.npos){
foo.cc:56:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
56 | if (a!=content.npos){
foo.cc:69:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
69 | if (a!=content.npos){
foo.cc:81:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
81 | if (a!=content.npos){
foo.cc:85:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for(int i=a+10;i<a+20&&i<content.length();i++){
| ~^~~~~~~~~~~~~~~~~
foo.cc:32:7: warning: variable 'b' set but not used [-Wunused-but-set-variable]
32 | bool b = true;
| ^
foo.cc: In function 'int ifshrs(int, int, int, std::string, std::string, std::string*, int*, std::string*, int*, int*)':
foo.cc:116:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
116 | if(c!=b.npos){
foo.cc:123:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
123 | if(c!=b.npos){
foo.cc:134:13: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
134 | if(c!=b.npos){
foo.cc:141:14: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
141 | if(c!=b.npos){
foo.cc:158:23: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
158 | if (c == b.npos){
foo.cc:185:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
185 | if(c!=content.npos){
foo.cc:187:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
187 | if (c!=content.npos){
foo.cc:192:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
192 | if(c!=content.npos){
foo.cc:194:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
194 | if(c==content.npos){
foo.cc:199:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
199 | if(c!=content.npos){
foo.cc:201:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
201 | if(c!=content.npos){
foo.cc:207:9: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
207 | if (c!=content.npos){
foo.cc:213:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
213 | if(c!=content.npos){
[Hydro](https://hydro.ac)提供评测服务