Problem helloworld
User a
Submission Time 2025-07-03 15:46:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In member function ‘long long int Node::query(long long int)’:
helloworld.cpp:64:33: error: no matching function for call to ‘Node::update(const long long int&)’
64 | ans+=r->update(max(num,r->hv));
| ^
helloworld.cpp:41:7: note: candidate: ‘void Node::update(long long int, long long int)’
41 | void update(int pos, int type)
| ^~~~~~
helloworld.cpp:41:7: note: candidate expects 2 arguments, 1 provided
helloworld.cpp:65:12: error: ‘struct Node’ has no member named ‘hav’; did you mean ‘hv’?
65 | num-=r->hav;
| ^~~
| hv
helloworld.cpp:69:22: error: no matching function for call to ‘Node::update(long long int&)’
69 | ans+=l->update(num);
| ^
helloworld.cpp:41:7: note: candidate: ‘void Node::update(long long int, long long int)’
41 | void update(int pos, int type)
|