necklace.cpp: In function 'u64 pown(u64, u64)':
necklace.cpp:29:23: warning: comparison of integer expressions of different signedness: 'int' and 'u64' {aka 'long long unsigned int'} [-Wsign-compare]
29 | for (int i = 1; i <= b; ++i) r = (r * a) % M;
| ~~^~~~
necklace.cpp: In lambda function:
necklace.cpp:41:22: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | return u64(V[a]*V[b]^(V[a]+V[b]));
| ^
necklace.cpp:41:27: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | return u64(V[a]*V[b]^(V[a]+V[b]));
| ^
necklace.cpp:41:33: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | return u64(V[a]*V[b]^(V[a]+V[b]));
| ^
necklace.cpp:41:38: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | return u64(V[a]*V[b]^(V[a]+V[b]));
| ^
necklace.cpp: In function 'int main()':
necklace.cpp:58:23: 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 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:58:66: 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 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:59:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for (int i = 0; i < t.size(); ++i)
| ~~^~~~~~~~~~
necklace.cpp:60:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (int j = 1; j + i - 1 < t.size(); ++j)
| ~~~~~~~~~~^~~~~~~~~~