Problem bossbattle
User Ok
Submission Time 2023-12-06 12:40:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bossbattle.cpp: In function ‘int main()’:
bossbattle.cpp:37:31: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::back() const [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?)
37 | ho[i] = (h[i] + v.back.first - 1) / (v.back().first);
| ~~^~~~
| ()
bossbattle.cpp:37:36: error: expected ‘)’ before ‘first’
37 | ho[i] = (h[i] + v.back.first - 1) / (v.back().first);
| ~ ^~~~~
| )