Problem pigeonhole
User hwy
Submission Time 2023-06-07 17:00:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:22:14: error: request for member ‘begin’ in ‘holes’, which is of non-class type ‘int [h]’
22 | copy(holes.begin(), holes.end(), copy.begin());
| ^~~~~
pigeonhole.cpp:22:29: error: request for member ‘end’ in ‘holes’, which is of non-class type ‘int [h]’
22 | copy(holes.begin(), holes.end(), copy.begin());
| ^~~
pigeonhole.cpp:22:41: error: request for member ‘begin’ in ‘copy’, which is of non-class type ‘int [h]’
22 | copy(holes.begin(), holes.end(), copy.begin());
| ^~~~~
pigeonhole.cpp:22:48: error: ‘copy’ cannot be used as a function
22 | copy(holes.begin(), holes.end(), copy.begin());
| ^
pigeonhole.cpp:24:8: error: request for member ‘sort’ in ‘copy’, which is of non-class type ‘int [h]’
24 | copy.sort();