cmp.cpp: In function 'void remember(int)':
cmp.cpp:14:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
cmp.cpp: In function 'int compare(int)':
cmp.cpp:32:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
cmp.cpp:48:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | if(ans==s.size()-1)return 0;
| ~~~^~~~~~~~~~~~