Problem | traineeline |
---|---|
User | asbx |
Submission Time | 2023-12-13 11:41:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
traineeline.cpp: In function ‘int main()’:
traineeline.cpp:24:13: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘second’
24 | c+=a*b.second();
| ^~~~~~
traineeline.cpp:30:12: error: invalid use of member function ‘std::deque<_Tp, _Alloc>::const_reference std::deque<_Tp, _Alloc>::front() const [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?)
30 | a=a-b.front.first;
| ~~^~~~~
| ()