0_0_38023064_12917.cpp:40:26: error: could not convert '{-1, 0, 0, 0, 0, 0}' from '<brace-enclosed initializer list>' to 'node'
node ee = { -1,0,0,0,0,0 };
^
0_0_38023064_12917.cpp: In function 'node operator+(node, node)':
0_0_38023064_12917.cpp:52:40: error: could not convert '{mx, a.node::lv, lmx, b.node::rv, rmx, len}' from '<brace-enclosed initializer list>' to 'node'
return { mx,a.lv,lmx,b.rv,rmx ,len };
^
0_0_38023064_12917.cpp: In function 'void build(int, int, int)':
0_0_38023064_12917.cpp:64:15: error: no match for 'operator=' (operand types are 'node' and '<brace-enclosed initializer list>')
tr[x] = {
^
0_0_38023064_12917.cpp:64:15: note: candidates are:
0_0_38023064_12917.cpp:33:8: note: node& node::operator=(const node&)
struct node{
^
0_0_38023064_12917.cpp:33:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const node&'
0_0_38023064_12917.cpp:33:8: note: node& node::operator=(node&&)
0_0_38023064_12917.cpp:33:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'node&&'
0_0_38023064_12917.cpp: In function 'void upd(int, int, int, int, int)':
0_0_38023064_12917.cpp:81:15: error: no match for 'operator=' (operand types are 'node' and '<brace-enclosed initializer list>')
tr[x] = {
^
0_0_38023064_12917.cpp:81:15: note: candidates are:
0_0_38023064_12917.cpp:33:8: note: node& node::operator=(const node&)
struct node{
^
0_0_38023064_12917.cpp:33:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const node&'
0_0_38023064_12917.cpp:33:8: note: node& node::operator=(node&&)
0_0_38023064_12917.cpp:33:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'node&&'
|