foo.cc: In function 'int say1(std::string*, int*, int*, std::string*, int*)':
foo.cc:55:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
55 | if (a!=content.npos){
foo.cc:60:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
60 | if (a!=content.npos){
foo.cc:65:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
65 | if (a!=content.npos){
foo.cc:78:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
78 | if (a!=content.npos){
foo.cc:90:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
90 | if (a!=content.npos){
foo.cc:94:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | for(int i=a+10;i<a+20&&i<content.length();i++){
| ~^~~~~~~~~~~~~~~~~
foo.cc:41:7: warning: variable 'b' set but not used [-Wunused-but-set-variable]
41 | 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:123:21: 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 and c==0){
foo.cc:128:23: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
128 | else if(c!= b.npos){
foo.cc:130:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
130 | if(c!=b.npos){
foo.cc:142:13: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
142 | if(c!=b.npos and c==0){
foo.cc:147:15: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
147 | else if(c!= b.npos){
foo.cc:149:11: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
149 | if(c!=b.npos){
foo.cc:158:14: 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:175:23: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
175 | if (c == b.npos){
foo.cc:205:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
205 | if(c!=content.npos){
foo.cc:207:12: 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:212:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
212 | if(c!=content.npos){
foo.cc:214:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
214 | if(c==content.npos){
foo.cc:219:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
219 | if(c!=content.npos){
foo.cc:221:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
221 | if(c!=content.npos){
foo.cc:227:9: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
227 | if (c!=content.npos){
foo.cc:233:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
233 | if(c!=content.npos){
[Hydro](https://hydro.ac)提供评测服务