foo.cc: In function ‘int main()’:
foo.cc:33:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
33 | for (int i = 0; i < str.size(), i++){
| ~~^~~~~~~~~~~~
foo.cc:33:27: warning: value computed is not used [-Wunused-value]
foo.cc:33:44: error: expected ‘;’ before ‘)’ token
33 | for (int i = 0; i < str.size(), i++){
| ^
| ;
foo.cc:34:28: warning: comparison with string literal results in unspecified behavior [-Waddress]
34 | if (str[i] == "1"){
foo.cc:34:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]