Problem | gfriendtree |
---|---|
User | IWKR |
Submission Time | 2023-12-23 11:15:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gfriendtree.cpp:14:14: error: array bound is not an integer constant before ‘]’ token
14 | int mp[n + 1]; // sum
| ^
gfriendtree.cpp:15:15: error: array bound is not an integer constant before ‘]’ token
15 | int mp2[n + 1]; // max
| ^
gfriendtree.cpp: In member function ‘void node::update(long long int, long long int, long long int)’:
gfriendtree.cpp:31:10: error: ‘mp’ was not declared in this scope; did you mean ‘m’?
31 | mp[person] = V;
| ^~
| m
gfriendtree.cpp:32:10: error: ‘mp2’ was not declared in this scope
32 | mp2[person] = V;
| ^~~
gfriendtree.cpp:39:4: error: ‘mp’ was not declared in this scope; did you mean ‘m’?
39 | mp[person] = l -> mp[person] + r -> mp[person];
| ^~
| m
gfriendtree.cpp:39:22: error: ‘struct node’ has no member named ‘mp’; did you mean ‘m’?
39 | mp[pe