Problem | swords |
---|---|
User | nutzzzz |
Submission Time | 2025-01-21 20:59:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:44:19: error: ‘p’ was not declared in this scope
44 | int start_x = p->second;
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from swords.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of ‘constexpr std::reverse_iterator<_Iterator> std::reverse_iterator<_Iterator>::operator+(std::reverse_iterator<_Iterator>::difference_type) const [with _Iterator = std::_Rb_tree_iterator<std::pair<const int, int> >; std::reverse_iterator<_Iterator>::difference_type = long int]’:
swords.cpp:45:27: required from here
/usr/include/c++/9/bits/stl_iterator.h:255:41: error: no match