horses.cpp: In function 'll cnt(int, int)':
horses.cpp:16:3: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
16 | l+=N; r+=N;
| ~^~~
horses.cpp:16:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
16 | l+=N; r+=N;
| ~^~~
horses.cpp: In function 'll solve()':
horses.cpp:34:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
34 | ll ans=0, x=cnt(0, k-1);
| ~^~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:53:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
53 | for(int i=N-1; i>=0; --i) tr[i]=(tr[2*i]*tr[2*i+1])%MOD;
| ~^~
horses.cpp:54:14: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
54 | return solve();
| ~~~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:59:5: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
59 | pos+=N;
| ~~~^~~
horses.cpp:66:14: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
66 | return solve();
| ~~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:71:14: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
71 | return solve();
| ~~~~~^~