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