Main.cpp:9:31: warning: integer overflow in expression of type 'long long int' results in '9223372036854775807' [-Woverflow]
9 | const int INFTY = (1LL << 63) - 1;
| ~~~~~~~~~~~~^~~
Main.cpp:12:10: error: 'integral' has not been declared
12 | template<integral T, integral U> inline T mod(T a, U b) {
| ^~~~~~~~
Main.cpp:12:22: error: 'integral' has not been declared
12 | template<integral T, integral U> inline T mod(T a, U b) {
| ^~~~~~~~
Main.cpp:12:41: error: 'T' does not name a type
12 | template<integral T, integral U> inline T mod(T a, U b) {
| ^
Main.cpp: In function 'bool sim(std::string, std::string)':
Main.cpp:18:11: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if (n != s2.size()) return false;
| ~~^~~~~~~~~~~~
Main.cpp:21:20: error: 'mod' was not declared in this scope; did you mean 'modf'?
21 | lastdiff = mod(s1[i] - s2[i] - lastdiff, 26LL);
| ^~~
| modf