/in/foo.cc: In function 'int main()':
/in/foo.cc:24:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | while (i <= s.length())
| ~~^~~~~~~~~~~~~
/in/foo.cc:26:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | if (i == s.length() || s[i] == ' ')
| ~~^~~~~~~~~~~~~
/in/foo.cc:36:14: error: redeclaration of 'auto it'
36 | auto it = w.find(c);
| ^~
/in/foo.cc:33:24: note: 'const std::string& it' previously declared here
33 | for (const string& it : a)
| ^~