horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:10:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
10 | int init(int N, int X[], int Y[]) {
| ~~~~^
horses.cpp:6:11: note: shadowed declaration is here
6 | const int N = 5e5 + 69;
| ^
horses.cpp:27:13: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
27 | if (mult >= 1e9) break;
| ^~~~
horses.cpp:37:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
37 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:44:9: error: declaration of 'int pos' shadows a parameter
44 | int pos = -1;
| ^~~
horses.cpp:40:17: note: 'int pos' previously declared here
40 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp:53:13: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
53 | if (mult >= 1e9) break;
| ^~~~
horses.cpp:63:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
63 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:71:9: error: declaration of 'int pos' shadows a parameter
71 | int pos = -1;
| ^~~
horses.cpp:66:17: note: 'int pos' previously declared here
66 | int updateY(int pos, int val) {
| ~~~~^~~
horses.cpp:80:13: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
80 | if (mult >= 1e9) break;
| ^~~~
horses.cpp:90:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
90 | return ans;
| ^~~