foo.cc: In function 'int main()':
foo.cc:10:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |         for(int i=0;i<=s.length() && success;i++){
      |                     ~^~~~~~~~~~~~
foo.cc:10:38: error: 'success' was not declared in this scope
   10 |         for(int i=0;i<=s.length() && success;i++){
      |                                      ^~~~~~~
foo.cc:14:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |                         while(j<t.length()){
      |                               ~^~~~~~~~~~~
foo.cc:20:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |                         if(j==t.length())
      |                            ~^~~~~~~~~~~~
foo.cc:24:24: error: expected '}' at end of input
   24 |         return 0;
      |                        ^
foo.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
   
  
    [Hydro](https://hydro.ac)提供评测服务