Problem hld
User PlayVoltz
Submission Time 2023-10-05 23:56:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hld.cpp: In function ‘void hldupdatepath(int, int, int)’:
hld.cpp:206:23: error: ‘struct node’ has no member named ‘ad’; did you mean ‘add’?
206 | if (in[c]!=in[b])st->ad(in[c]+1, in[b], val);
| ^~
| add
hld.cpp: In function ‘int main()’:
hld.cpp:245:20: error: ‘struct node’ has no member named ‘up’
245 | if (root==a)st->up(1, n, b);
| ^~