necklace.cpp: In function 'bool is_equal(std::string, std::string)':
necklace.cpp:26:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i = 1; i <= x.length(); ++i) h[i] = (h[i - 1] + e[i] * (x[i - 1] - 'a' + 1)) % MOD;
| ~~^~~~~~~~~~~~~
necklace.cpp:27:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i = 1; i <= x.length(); ++i) h1[i] = (h1[i - 1] + e[i] * (y[i - 1] - 'a' + 1)) % MOD;
| ~~^~~~~~~~~~~~~
necklace.cpp:29:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int c = 0; c < x.length(); ++c){
| ~~^~~~~~~~~~~~
necklace.cpp:39:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int i = 1; i <= x.length(); ++i) h1[i] = (h1[i - 1] + e[i] * (y[i - 1] - 'a' + 1)) % MOD;
| ~~^~~~~~~~~~~~~
necklace.cpp:41:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int c = 0; c < x.length(); ++c){
| ~~^~~~~~~~~~~~
necklace.cpp: In function 'int main()':
necklace.cpp:84:16: warning: unused variable 'aa' [-Wunused-variable]
84 | int T = 1, aa;
| ^~