horses.cpp: In function 'long long int fpw(long long int, long long int)':
horses.cpp:13:25: warning: declaration of 'n' shadows a global declaration [-Wshadow]
13 | long long fpw(long long n, long long p) {
| ~~~~~~~~~~^
horses.cpp:10:5: note: shadowed declaration is here
10 | int n;
| ^
horses.cpp: In function 'long long int inv(long long int)':
horses.cpp:21:25: warning: declaration of 'n' shadows a global declaration [-Wshadow]
21 | long long inv(long long n) {
| ~~~~~~~~~~^
horses.cpp:10:5: note: shadowed declaration is here
10 | int n;
| ^
horses.cpp: In function 'void push(int)':
horses.cpp:25:15: warning: declaration of 'x' shadows a global declaration [-Wshadow]
25 | void push(int x) {
| ~~~~^
horses.cpp:11:11: note: shadowed declaration is here
11 | long long x[500005], y[500005];
| ^
horses.cpp: In function 'void seg_set(int, int, int, int, int, double)':
horses.cpp:38:18: warning: declaration of 'x' shadows a global declaration [-Wshadow]
38 | void seg_set(int x, int l, int r, int pos, int val, double LOG) {
| ~~~~^
horses.cpp:11:11: note: shadowed declaration is here
11 | long long x[500005], y[500005];
| ^
horses.cpp: In function 'void seg_upd(int, int, int, int, int, long long int, double)':
horses.cpp:55:18: warning: declaration of 'x' shadows a global declaration [-Wshadow]
55 | void seg_upd(int x, int l, int r, int ll, int rr, long long val, double LOG) {
| ~~~~^
horses.cpp:11:11: note: shadowed declaration is here
11 | long long x[500005], y[500005];
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:85:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
85 | seg_set(1, 0, n-1, i, (mulc * Y[i]) % mod, logc + log(Y[i]));
| ~~~~~~~~~~~~~~^~~~~
horses.cpp:87:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
87 | return segmul[1];
| ~~~~~~~~^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:95:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
95 | return segmul[1];
| ~~~~~~~~^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:103:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
103 | return segmul[1];
| ~~~~~~~~^