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

Compile Error

pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:9:3: error: ‘hole’ was not declared in this scope; did you mean ‘holes’?
9 | hole.push_back(0);
| ^~~~
| holes
pigeonhole.cpp:27:22: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
27 | cout << copy[(copy.size)-1] << '\n';
| ~~~~~~^~~~~
| ()