Problem knockingdominoes_ex
User suzienguyen
Submission Time 2026-06-25 10:44:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knockingdominoes_ex.cpp: In function ‘int32_t main()’:
knockingdominoes_ex.cpp:28:16: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
28 | for (int i=v.size-1; i>=v2[1]; i--) v.pop_back;
| ~~^~~~
| ()
knockingdominoes_ex.cpp:28:41: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
28 | for (int i=v.size-1; i>=v2[1]; i--) v.pop_back;
| ~~^~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl