Problem poi
User TheInvadr
Submission Time 2023-01-15 18:26:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

poi.cpp:12:14: error: expected type-specifier before ‘(’ token
12 | bool operator( contestant a, contestant b ){
| ^
poi.cpp:23:22: error: array must be initialized with a brace-enclosed initializer
23 | contestant A[2002] = contestant( 0, 0, 0 );
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from poi.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = contestant*; _Iterator2 = contestant*]’:
/usr/include/c++/9/bits/stl_algo.h:81:17: required from ‘void std::__move_median_to_first(_Iterator, _I