Problem | pigeonhole |
---|---|
User | hwy |
Submission Time | 2023-06-07 16:58:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:8:13: error: request for member ‘begin’ in ‘holes’, which is of non-class type ‘int [h]’
8 | fill(holes.begin(), holes.end(), 0);
| ^~~~~
pigeonhole.cpp:8:28: error: request for member ‘end’ in ‘holes’, which is of non-class type ‘int [h]’
8 | fill(holes.begin(), holes.end(), 0);
| ^~~
pigeonhole.cpp:22:10: error: invalid array assignment
22 | copy = holes;
| ^~~~~
pigeonhole.cpp:23:8: error: request for member ‘sort’ in ‘copy’, which is of non-class type ‘int [h]’
23 | copy.sort();
| ^~~~
pigeonhole.cpp:24:21: error: request for member ‘size’ in ‘copy’, which is of non-class type ‘int [h]’
24 | cout << copy[copy.size()-1] << '\n';
| ^~~~