horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:5:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>N;
| ^~~
| std::cin
In file included from horses.cpp:2:
/usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
horses.cpp:14:13: error: 'max' was not declared in this scope; did you mean 'std::max'?
14 | ans=max(ans,sum*X[i]*Y[i]),sum*=X[i];
| ^~~
| std::max
In file included from /usr/include/c++/11/string:52,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from horses.cpp:2:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: 'std::max' declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~