Problem gfriendtree
User PlayVoltz
Submission Time 2023-12-23 11:25:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gfriendtree.cpp: In constructor ‘node::node(long long int, long long int)’:
gfriendtree.cpp:34:7: error: ‘mx’ was not declared in this scope; did you mean ‘m’?
34 | val=mx=0;
| ^~
| m
gfriendtree.cpp: In member function ‘void node::up(long long int, long long int)’:
gfriendtree.cpp:38:16: error: ‘mx’ was not declared in this scope; did you mean ‘m’?
38 | if (s==e)val=mx=v;
| ^~
| m
gfriendtree.cpp:42:31: error: ‘mx’ was not declared in this scope; did you mean ‘m’?
42 | if (r==nullptr)val=l->val, mx=l->mx;
| ^~
| m
gfriendtree.cpp:42:37: error: ‘struct node’ has no member named ‘mx’; did you mean ‘m’?
42 | if (r==nullptr)val=l->val, mx=l->mx;
| ^~
| m
gfriendtree.cpp:43:36: error: