tortoise.cpp: In function 'int main()':
tortoise.cpp:41:27: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
41 | for (int32_t i = 0; i < (n << 1) - 1; ++i)
| ~~^~~~~~~~~~~~~~
tortoise.cpp:42:31: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
42 | for (int32_t j = 0; j < n; ++j)
| ~~^~~
tortoise.cpp:44:35: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
44 | for (int32_t k = 0; k < n; ++k)
| ~~^~~
tortoise.cpp:49:65: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
49 | if (i <= (j << 1) && u[j] != -1 && i + j - u[j] < (n << 1) - 1)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
tortoise.cpp:53:43: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
53 | if (i <= (j << 1) && v[j] != n && i + v[j] - j < (n << 1) - 1)
| ~~~~~^~~~
tortoise.cpp:53:64: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
53 | if (i <= (j << 1) && v[j] != n && i + v[j] - j < (n << 1) - 1)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~