horses.cpp: In function 'long long int calc()':
horses.cpp:20:7: warning: declaration of 'res' shadows a previous local [-Wshadow]
20 | ll res = 1ll * (mod + prmult) * y[i];
| ^~~
horses.cpp:18:6: note: shadowed declaration is here
18 | ll res;
| ^~~
horses.cpp:24:7: warning: declaration of 'res' shadows a previous local [-Wshadow]
24 | ll res = 1ll * prmult * y[i];
| ^~~
horses.cpp:18:6: note: shadowed declaration is here
18 | ll res;
| ^~~
horses.cpp:18: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:38:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
38 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:43:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
43 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:48:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
48 | return calc();
| ~~~~^~