horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:54:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
54 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:63:13: error: 'N' was not declared in this scope
63 | rep(i,0,N) {
| ^
horses.cpp:22:42: note: in definition of macro 'rep'
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ^
horses.cpp:68:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
68 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:77:13: error: 'N' was not declared in this scope
77 | rep(i,0,N) {
| ^
horses.cpp:22:42: note: in definition of macro 'rep'
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ^
horses.cpp:82:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
82 | return ans;
| ^~~