friends.cpp: In function 'int main()':
friends.cpp:27:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | if(pt != ts.size()&&s[i] == ts[pt])pt++;
| ~~~^~~~~~~~~~~~
friends.cpp:29:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | if(pt == ts.size())ans = ts;
| ~~~^~~~~~~~~~~~
friends.cpp:33:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | if(pt != ts.size()&&ts[pt] == s[i])pt++;
| ~~~^~~~~~~~~~~~
friends.cpp:35:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if(pt == ts.size()){
| ~~~^~~~~~~~~~~~
friends.cpp:36:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
36 | if(pt =!ans.empty()&&ans != ts){
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~