Problem traineeline
User asbx
Submission Time 2023-12-13 11:40:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

traineeline.cpp: In function ‘int main()’:
traineeline.cpp:22:13: 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 ‘()’ ?)
22 | if(a<=b.front.first){
| ~~^~~~~
| ()
traineeline.cpp:22:19: error: expected ‘)’ before ‘first’
22 | if(a<=b.front.first){
| ~ ^~~~~
| )
traineeline.cpp:23:13: error: ‘class std::deque<std::pair<int, int> >’ has no member named ‘second’
23 | c+=a*b.second();
| ^~~~~~
traineeline.cpp:24:8: error: invalid use of member function ‘std::deque<_Tp, _Alloc>::const_reference std::deque<_Tp, _Alloc>::fro