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:13:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | while(j<t.length()){
| ~^~~~~~~~~~~
foo.cc:14:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | if(i<s.length() && s[++i]!=t[j++])
| ~^~~~~~~~~~~
foo.cc:16:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | if(i>=s.length()){
| ~^~~~~~~~~~~~
foo.cc:17:46: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenght'; did you mean 'length'?
17 | i%=s.lenght();
| ^~~~~~
| length
foo.cc:21:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | if(j==t.length())
| ~^~~~~~~~~~~~
foo.cc:25:24: error: expected '}' at end of input
25 | return 0;
| ^
foo.cc:10:50: note: to match this '{'
10 | for(int i=0;i<=s.length() && success;i++){
| ^
foo.cc:25:24: error: expected '}' at end of input
25 | return 0;
| ^
foo.cc:6:11: note: to match this '{'
6 | int main(){
| ^
[Hydro](https://hydro.ac)提供评测服务