horses.cpp: In function 'int inv(int)':
horses.cpp:14:13: warning: declaration of 'x' shadows a global declaration [-Wshadow]
14 | int inv(int x){
| ~~~~^
horses.cpp:12:12: note: shadowed declaration is here
12 | vector<int>x,y;
| ^
horses.cpp:15:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
15 | return x>1 ? MOD-(long long)(MOD/x)*inv(MOD%x)%MOD : x;
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int get()':
horses.cpp:27:25: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<__int128>, __int128>::value_type' {aka '__int128'} to 'long long int' may change value [-Wconversion]
27 | long long ans=suff[i]%MOD;
horses.cpp:28:4: warning: statement has no effect [-Wunused-value]
28 | pref;
| ^~~~
horses.cpp:29:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
29 | return ans;
| ^~~
horses.cpp:32:16: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<__int128>, __int128>::value_type' {aka '__int128'} to 'int' may change value [-Wconversion]
32 | return suff[0]%MOD;