horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:8:28: error: 'class std::vector<int>' has no member named 'pb'
8 | for(int i=0;i<N;i++)vx.pb(X[i]);
| ^~
horses.cpp:9:28: error: 'class std::vector<int>' has no member named 'pb'
9 | for(int i=0;i<N;i++)vy.pb(Y[i]);
| ^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:25:13: error: 'X' was not declared in this scope
25 | p=p*X[i];
| ^
horses.cpp:26:21: error: 'Y' was not declared in this scope
26 | mx=max(mx,p*Y[i]);
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:37:13: error: 'X' was not declared in this scope
37 | p=p*X[i];
| ^
horses.cpp:38:21: error: 'Y' was not declared in this scope
38 | mx=max(mx,p*Y[i]);
| ^