foo.cc: In function 'int main()':
foo.cc:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int i=0;i<strlen(s);i++){
| ~^~~~~~~~~~
foo.cc:13:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
13 | if(s[i]>=97&&s[i]<=122||s[i]>=65&&s[i]<=90){
| ~~~~~~~~^~~~~~~~~~~
foo.cc:18:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int i=1;i<strlen(s);i++){
| ~^~~~~~~~~~
foo.cc:19:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
19 | if(s[i]>=97&&s[i]<=122||s[i]>=65&&s[i]<=90&&(s[i-1]>=97&&s[i-1]<=122||s[i-1]>=65&&s[i-1]<=90)){
| ~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:19:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
19 | if(s[i]>=97&&s[i]<=122||s[i]>=65&&s[i]<=90&&(s[i-1]>=97&&s[i-1]<=122||s[i-1]>=65&&s[i-1]<=90)){
| ~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务