horses.cpp: In function 'double stq(int, int, int, int, int)':
horses.cpp:39:15: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion]
int i1 = stq(node*2, l, m, sl, sr);
~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp:40:15: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion]
int i2 = stq(node*2+1, m+1, r, sl, sr);
~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:64:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion]
int i = stq(1, 0, n-1, 0, n-1);
~~~^~~~~~~~~~~~~~~~~~~
horses.cpp:66:17: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return arrmod[i];
~~~~~~~~^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:69:17: warning: unused parameter 'pos' [-Wunused-parameter]
int updateX(int pos, int val){
^~~
horses.cpp:69:26: warning: unused parameter 'val' [-Wunused-parameter]
int updateX(int pos, int val){
^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:74:17: warning: unused parameter 'pos' [-Wunused-parameter]
int updateY(int pos, int val) {
^~~
horses.cpp:74:26: warning: unused parameter 'val' [-Wunused-parameter]
int updateY(int pos, int val) {
^~~