necklace.cpp: In function 'int main()':
necklace.cpp:14:15: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
14 | if(pos!=string::npos && aux.size()>ans) ans=aux.size(),l=i,r=pos;
| ~~~^~~~~~~~~~~~~~
necklace.cpp:14:43: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
14 | if(pos!=string::npos && aux.size()>ans) ans=aux.size(),l=i,r=pos;
| ~~~~~~~~~~^~~~
necklace.cpp:20:15: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
20 | if(pos!=string::npos && aux.size()>ans) ans=aux.size(),l=n-k,r=pos;
| ~~~^~~~~~~~~~~~~~
necklace.cpp:20:43: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | if(pos!=string::npos && aux.size()>ans) ans=aux.size(),l=n-k,r=pos;
| ~~~~~~~~~~^~~~
necklace.cpp:10:20: warning: unused variable 'm' [-Wunused-variable]
10 | int n=s.size(),m=t.size(),ans=0,l=0,r=0;
| ^