Problem horses
User nyanyanya
Submission Time 2023-01-18 09:16:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

horses.cpp: In member function ‘void node2::update(long long int, long long int)’:
horses.cpp:53:18: error: expected unqualified-id before ‘=’ token
53 | if (s == e) ll = V;
| ^
horses.cpp: In function ‘int updateX(int, int)’:
horses.cpp:108:28: error: ‘mp’ was not declared in this scope
108 | auto it = s.upper_bound(mp(pos, 0));
| ^~
horses.cpp:115:28: error: ‘mp’ was not declared in this scope
115 | auto it = s.lower_bound(mp(pos, 0));
| ^~
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from horses.cpp:2:
/usr/include/c++/9/bits/stl_set.h: In instantiation of ‘void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, in