Problem qualityinspections
User IWKR
Submission Time 2023-04-21 21:44:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

qualityinspections.cpp: In function ‘int32_t main()’:
qualityinspections.cpp:29:36: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
29 | pair<int, int> c = v[v.size - 1];
| ~~^~~~
| ()