necklace.cpp: In lambda function:
necklace.cpp:40:48: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | auto L = [&](char a, char b){ return u64(V[a]*V[b]^(V[a]+V[b])); };
| ^
necklace.cpp:40:53: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | auto L = [&](char a, char b){ return u64(V[a]*V[b]^(V[a]+V[b])); };
| ^
necklace.cpp:40:59: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | auto L = [&](char a, char b){ return u64(V[a]*V[b]^(V[a]+V[b])); };
| ^
necklace.cpp:40:64: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | auto L = [&](char a, char b){ return u64(V[a]*V[b]^(V[a]+V[b])); };
| ^
necklace.cpp: In function 'int main()':
necklace.cpp:56:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i = 0; i < s.size(); ++i) for (int j = 1; i + j - 1 < s.size(); ++j) x[H(s.data() + i, j)] = i;
| ~~^~~~~~~~~~
necklace.cpp:56:66: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i = 0; i < s.size(); ++i) for (int j = 1; i + j - 1 < s.size(); ++j) x[H(s.data() + i, j)] = i;
| ~~~~~~~~~~^~~~~~~~~~
necklace.cpp:57:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int i = 0; i < t.size(); ++i)
| ~~^~~~~~~~~~
necklace.cpp:58:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for (int j = 1; j + i - 1 < t.size(); ++j)
| ~~~~~~~~~~^~~~~~~~~~