horses.cpp: In function 'void setX(int, int)':
horses.cpp:17:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
17 | pos += pow2;
| ~~~~^~~~~~~
horses.cpp: In function 'int getOFId(int, ll)':
horses.cpp:31:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
31 | if (i >= pow2) return i-pow2;
| ~^~~~~
horses.cpp: In function 'int getMulMod(int)':
horses.cpp:37:15: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
37 | int low = pow2, high = pow2+i;
| ^~~~
horses.cpp:37:32: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
37 | int low = pow2, high = pow2+i;
| ~~~~^~
horses.cpp:44:16: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
44 | return res % MOD;
| ^
horses.cpp: In function 'int calc()':
horses.cpp:50:27: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | ll offCnt = getMulMod(ofId);
| ^~~~
horses.cpp:59:18: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
59 | for (int i = ofId; i < n; i++) {
| ^~~~
horses.cpp:69:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
69 | return mxRes;
| ^~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:85:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
85 | for (int i = pow2-1; i > 0; i--) {
| ~~~~^~