Problem catlunch
User Hytoh
Submission Time 2023-05-29 15:10:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:21:8: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]’
21 | fish.pop_back;
| ~~~~~^~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from catlunch.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:1222:7: note: declared here
1222 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~