#include <iostream>
#include <map>
#include <vector>
#include <string>
using namespace std;
typedef long long ll;
typedef struct lnode
{
ll l, r;
struct lnode* left, * right, *parent;
ll ans;
}node;
node* creat_node(ll l, ll r, ll ans)
{
node* p = ...