horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:11:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
11 | int init(int N, int X[], int Y[]){
| ~~~~^
horses.cpp:7:11: note: shadowed declaration is here
7 | const int N=1e3+100;
| ^
horses.cpp:23:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
23 | return ret;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:35:14: error: 'X' was not declared in this scope
35 | sum*=X[i];
| ^
horses.cpp:36:16: error: 'Y' was not declared in this scope
36 | if(sum*Y[i]>ret){
| ^
horses.cpp:42:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
42 | return ret;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:54:14: error: 'X' was not declared in this scope
54 | sum*=X[i];
| ^
horses.cpp:55:16: error: 'Y' was not declared in this scope
55 | if(sum*Y[i]>ret){
| ^
horses.cpp:61:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
61 | return ret;
| ^~~