foo.cc: In function 'int Search(std::vector<str>&, std::string)':
foo.cc:10:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<str>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:32:15: 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<s.size();i++)
| ~^~~~~~~~~
foo.cc:38:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
38 | if(!('a'<=s[i]&&s[i]<='z'||s[i]==' '||'0'<=s[i]&&s[i]<='9'))
| ~~~~~~~~~^~~~~~~~~~~
foo.cc:38:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
38 | if(!('a'<=s[i]&&s[i]<='z'||s[i]==' '||'0'<=s[i]&&s[i]<='9'))
| ~~~~~~~~~^~~~~~~~~~~
foo.cc:43:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务