horses.cpp: In function 'long long int slov()':
horses.cpp:30:12: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
int i=n-1;
~^~
horses.cpp:41:13: warning: declaration of 'i' shadows a previous local [-Wshadow]
for(int i=st;i<n;i++)
^
horses.cpp:30:9: note: shadowed declaration is here
int i=n-1;
^
horses.cpp:41:15: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for(int i=st;i<n;i++)
^~
horses.cpp:47:19: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
ans*=qrx(1,0,n+5,0,st-1);
~^~
horses.cpp:47:26: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
ans*=qrx(1,0,n+5,0,st-1);
~~^~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:56:18: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
upx(1,0,n+5,i,a[i]);
~^~
horses.cpp:59:16: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return slov();
~~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:64:14: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
upx(1,0,n+5,pos,val);
~^~
horses.cpp:65:16: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return slov();
~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:70:16: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return slov();
~~~~^~
horses.cpp: In function 'long long int slov()':
horses.cpp:29:25: warning: 'st' may be used uninitialized in this function [-Wmaybe-uninitialized]
long long x=1,ans=0,st;
^~