foo.cc: In function ‘bool check(std::string)’:
foo.cc:9:22: 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=0;i<str.size();i++)
| ~^~~~~~~~~~~
foo.cc:15:39: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
15 | str[i]=='#'|str[i]=='$')fhnum =1;
foo.cc: In function ‘int main()’:
foo.cc:25:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
25 | for(int i=0;i<st.size();i++)
| ~^~~~~~~~~~
foo.cc:30:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
30 | if(i==st.size()-1&&check(s))
| ~^~~~~~~~~~~~~