scrivener.cpp: In function 'int build(int, int)':
scrivener.cpp:20:21: warning: narrowing conversion of 'R' from 'int' to 'char' inside { } [-Wnarrowing]
seg[now] = {0, L, R};
^
scrivener.cpp: In function 'int update(int, int, int, int, char)':
scrivener.cpp:38:43: error: 'struct node' has no member named 'v'
seg[now].l = L, seg[now].r = R, seg[now].v = seg[L].v+seg[R].v;
^
scrivener.cpp:38:54: error: 'struct node' has no member named 'v'
seg[now].l = L, seg[now].r = R, seg[now].v = seg[L].v+seg[R].v;
^
scrivener.cpp:38:63: error: 'struct node' has no member named 'v'
seg[now].l = L, seg[now].r = R, seg[now].v = seg[L].v+seg[R].v;
^
scrivener.cpp: In function 'void TypeLetter(char)':
scrivener.cpp:44:63: error: 'struct node' has no member named 'v'
root[ver] = update(root[ver-1], 1, 1000000, seg[root[ver-1]].v+1, L);
^