friends.cpp: In function 'bool check(std::string, int, int)':
friends.cpp:3:72: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | bool check(string t,int l,int r){int pos=0;for(int i=l;i<=r;i++){if(pos!=t.size()&&t[pos]==s[i]){pos++;}}return(pos==t.size());}
| ~~~^~~~~~~~~~
friends.cpp:3:116: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | bool check(string t,int l,int r){int pos=0;for(int i=l;i<=r;i++){if(pos!=t.size()&&t[pos]==s[i]){pos++;}}return(pos==t.size());}
| ~~~^~~~~~~~~~