pinball.cpp: In instantiation of 'void add(T&, int, long long int) [with T = std::map<int, long long int>]':
pinball.cpp:38:21: required from here
pinball.cpp:9:11: error: cannot bind non-const lvalue reference of type 'std::_Rb_tree_iterator<std::pair<const int, long long int> >&' to an rvalue of type 'std::_Rb_tree_iterator<std::pair<const int, long long int> >'
9 | #define f first
pinball.cpp:19:31: note: in expansion of macro 'f'
19 | auto &it = dp.insert({x, y}).f;
| ^
pinball.cpp: In instantiation of 'void add(T&, int, long long int) [with T = std::map<int, long long int, std::greater<int> >]':
pinball.cpp:38:42: required from here
pinball.cpp:9:11: error: cannot bind non-const lvalue reference of type 'std::_Rb_tree_iterator<std::pair<const int, long long int> >&' to an rvalue of type 'std::_Rb_tree_iterator<std::pair<const int, long long int> >'
9 | #define f first
pinball.cpp:19:31: note: in expansion of macro 'f'
19 | auto &it = dp.insert({x, y}).f;
| ^