horses.cpp: In function 'll bt(int, int, int)':
horses.cpp:33:13: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
val %= mod ;
~~~~^~~~~~
horses.cpp:36:13: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
num *= a[id];
~~~~^~~~~~~~
horses.cpp:38:48: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
ans = max ( ans , bt( id+1 , 1 , val + (num-1) * cost [id] ) );
~~~~^~~~~~~~~~~~~~~~~~~~~
horses.cpp:39:48: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
ans = max ( ans , bt( id+1 , 0 , val + num * cost [id] ) );
~~~~^~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:47:18: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return bt(0,1,0);
~~^~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:49:17: warning: unused parameter 'pos' [-Wunused-parameter]
int updateX(int pos, int val) {
^~~
horses.cpp:49:26: warning: unused parameter 'val' [-Wunused-parameter]
int updateX(int pos, int val) {
^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:53:17: warning: unused parameter 'pos' [-Wunused-parameter]
int updateY(int pos, int val) {
^~~
horses.cpp:53:26: warning: unused parameter 'val' [-Wunused-parameter]
int updateY(int pos, int val) {
^~~