Problem | lightningrod |
---|---|
User | yc |
Submission Time | 2025-06-01 06:53:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:15:13: error: request for member ‘empty’ in ‘N’, which is of non-class type ‘int’
15 | while (!N.empty()){
| ^~~~~
lightningrod.cpp:17:5: 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 ‘()’ ?)
17 | a=n.front.first();
| ~~^~~~~
| ()
lightningrod.cpp:18:5: 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 for