Problem | pigeonhole |
---|---|
User | hwy |
Submission Time | 2023-06-07 17:01:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:22:16: error: request for member ‘begin’ in ‘holes’, which is of non-class type ‘int [h]’
22 | copy_n(holes.begin(), h, copy.begin());
| ^~~~~
pigeonhole.cpp:22:33: error: request for member ‘begin’ in ‘copy’, which is of non-class type ‘int [h]’
22 | copy_n(holes.begin(), h, copy.begin());
| ^~~~~
pigeonhole.cpp:24:8: error: request for member ‘sort’ in ‘copy’, which is of non-class type ‘int [h]’
24 | copy.sort();
| ^~~~
pigeonhole.cpp:25:21: error: request for member ‘size’ in ‘copy’, which is of non-class type ‘int [h]’
25 | cout << copy[copy.size()-1] << '\n';
| ^~~~