horses.cpp: In function 'int mul(int, int)':
horses.cpp:8:20: warning: declaration of 'b' shadows a global declaration [-Wshadow]
8 | int mul(int a, int b) {
| ~~~~^
horses.cpp:7:14: note: shadowed declaration is here
7 | int n, a[N], b[N], c[N];
| ^
horses.cpp:8:13: warning: declaration of 'a' shadows a global declaration [-Wshadow]
8 | int mul(int a, int b) {
| ~~~~^
horses.cpp:7:8: note: shadowed declaration is here
7 | int n, a[N], b[N], c[N];
| ^
horses.cpp:12:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
12 | return r;
| ^
horses.cpp: In function 'int Solve()':
horses.cpp:46:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
46 | ans = mul(ans, a[i]);
| ^~~
horses.cpp:47:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
47 | return mul(ans, b[bst]);
| ^~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:49:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
49 | int init(int N, int X[], int Y[]) {
| ~~~~^
horses.cpp:6:11: note: shadowed declaration is here
6 | const int N = 5e5 + 69;
| ^