sequence.cpp: In function 'bool comp(long long int, long long int, long long int, long long int)':
sequence.cpp:9:44: warning: integer overflow in expression [-Woverflow]
int xa1 = xa >> 31, xa0 = xa & ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:10:44: warning: integer overflow in expression [-Woverflow]
int xb1 = xb >> 31, xb0 = xb & ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:11:44: warning: integer overflow in expression [-Woverflow]
int ya1 = ya >> 31, ya0 = ya & ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:12:44: warning: integer overflow in expression [-Woverflow]
int yb1 = yb >> 31, yb0 = yb & ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:21:38: warning: integer overflow in expression [-Woverflow]
xc1 += xc0 >> 31; xc0 &= ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:22:38: warning: integer overflow in expression [-Woverflow]
xc2 += xc1 >> 31; xc1 &= ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:23:38: warning: integer overflow in expression [-Woverflow]
xc3 += xc2 >> 31; xc2 &= ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:24:38: warning: integer overflow in expression [-Woverflow]
yc1 += yc0 >> 31; yc0 &= ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:25:38: warning: integer overflow in expression [-Woverflow]
yc2 += yc1 >> 31; yc1 &= ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp:26:38: warning: integer overflow in expression [-Woverflow]
yc3 += yc2 >> 31; yc2 &= ((1 << 31) - 1);
~~~~~~~~~~^~~
sequence.cpp: In function 'int main()':
sequence.cpp:72:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ss[i] == ss[i - 1] && ret.size() != m) {
~~~~~~~~~~~^~~~
sequence.cpp:76:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ret.size(); i++) {
~~^~~~~~~~~~~~
sequence.cpp:78:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i + 1 == ret.size()) cout << '\n';
~~~~~~^~~~~~~~~~~~~