horses.cpp: In function 'long long int calc()':
horses.cpp:21:7: warning: declaration of 'res' shadows a previous local [-Wshadow]
21 | ll res = 1ll * (mod + prmult) * y[i];
| ^~~
horses.cpp:19:6: note: shadowed declaration is here
19 | ll res;
| ^~~
horses.cpp:25:7: warning: declaration of 'res' shadows a previous local [-Wshadow]
25 | ll res = 1ll * prmult * y[i];
| ^~~
horses.cpp:19:6: note: shadowed declaration is here
19 | ll res;
| ^~~
horses.cpp:19:6: warning: unused variable 'res' [-Wunused-variable]
horses.cpp:9:5: warning: unused variable 'ma' [-Wunused-variable]
9 | ll ma = 0;
| ^~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:39:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
39 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:44:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
44 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:49:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
49 | return calc();
| ~~~~^~