horses.cpp: In function 'int getPrev2Id(int)':
horses.cpp:21:7: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
21 | i += pow2;
| ~~^~~~~~~
horses.cpp:34:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
34 | return i-pow2;
| ~^~~~~
horses.cpp: In function 'int getMax(ll, ll)':
horses.cpp:45:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
45 | return res;
| ^~~
horses.cpp: In function 'void setX(int, int)':
horses.cpp:51:20: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
51 | int old = x[pos];
| ^
horses.cpp:53:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
53 | pos += pow2;
| ~~~~^~~~~~~
horses.cpp: In function 'int getOFId(int, ll)':
horses.cpp:109:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
109 | if (i >= pow2) return i-pow2;
| ~^~~~~
horses.cpp: In function 'int getMulMod(int)':
horses.cpp:115:15: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
115 | int low = pow2, high = pow2+i;
| ^~~~
horses.cpp:115:32: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
115 | int low = pow2, high = pow2+i;
| ~~~~^~
horses.cpp:122:16: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
122 | return res % MOD;
| ^
horses.cpp: In function 'int calc()':
horses.cpp:128:27: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
128 | ll offCnt = getMulMod(ofId);
| ^~~~
horses.cpp:137:18: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
137 | for (int i = ofId; i < n; i = lnk[i]) {
| ^~~~
horses.cpp:137:40: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
137 | for (int i = ofId; i < n; i = lnk[i]) {
| ^
horses.cpp:147:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
147 | return mxRes;
| ^~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:157:19: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
157 | for (int i = n-1; i >= 0; i--) {
| ~^~
horses.cpp:170:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
170 | for (int i = pow2-1; i > 0; i--) {
| ~~~~^~
horses.cpp:178:37: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
178 | for (int i = 0; i < n; i = lnk[i]) {
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:191:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
191 | return v;
| ^
horses.cpp:188:8: warning: unused variable 'val111' [-Wunused-variable]
188 | ll val111 = effY[3493];
| ^~~~~~
horses.cpp:189:8: warning: unused variable 'id' [-Wunused-variable]
189 | ll id = find(y.begin(), y.end(), 999825195) - y.begin();
| ^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:198:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
198 | return v;
| ^
horses.cpp:195:10: warning: unused variable 'hi' [-Wunused-variable]
195 | bool hi = true;
| ^~