Problem collectmushrooms4
User Hijackedsoul
Submission Time 2024-03-05 21:49:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms4.cpp: In function ‘int main()’:
collectmushrooms4.cpp:89:10: error: ‘struct node’ has no member named ‘update’
89 | root->update(0, work[ind].s-1, work[ind].gain);
| ^~~~~~
collectmushrooms4.cpp:92:18: error: ‘struct node’ has no member named ‘update’
92 | if (i!=n)root->update(i, i, dp+arr[i]);
| ^~~~~~