horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:12:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
12 | int place = i;
| ^
horses.cpp:14:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
14 | for(int j=i;j<N;j++){
| ^
horses.cpp:28:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
28 | return answer % (1000000007);
| ~~~~~~~^~~~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:32:5: error: 'X' was not declared in this scope
32 | X[pos]=val;
| ^
horses.cpp:33:17: error: 'N' was not declared in this scope
33 | return init(N,X,Y);
| ^
horses.cpp:33:21: error: 'Y' was not declared in this scope
33 | return init(N,X,Y);
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:37:5: error: 'Y' was not declared in this scope
37 | Y[pos]=val;
| ^
horses.cpp:38:17: error: 'N' was not declared in this scope
38 | return init(N,X,Y);
| ^
horses.cpp:38:19: error: 'X' was not declared in this scope
38 | return init(N,X,Y);
| ^