/in/foo.cc: In function 'int main()':
/in/foo.cc:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i=0;i<=s.size();i++)
| ~^~~~~~~~~~
/in/foo.cc:12:35: error: 'substr' was not declared in this scope; did you mean 'strstr'?
12 | string s1=substr(0,i+1);
| ^~~~~~
| strstr
/in/foo.cc:15:15: error: 's1' was not declared in this scope; did you mean 's'?
15 | cout<<s1;
| ^~
| s